From: Rick DeNatale Date: 2008-01-08T12:15:16+09:00 Subject: Re: More loosely typed expression On Jan 7, 2008 7:25 PM, Oliver Saunders wrote: > I'm just trying out RSpec with some really simple code. I have this > line: > > @subject.num(0).fizz?.should == false > > And I want it to pass if it's false OR nil. I tried using =~ but it made > no difference. Is there no way to do this in Ruby? @subject.num(0).fizz?.should be -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/