Re: [rspec-users] [rspec] be_something accepts nils

2009-04-28 Thread Ashley Moran
On 13 Mar 2009, at 16:34, Matt Wynne wrote: Like yoda sounds, that does Been implemented properly, it has :) http://blog.zenspider.com/2009/04/spec-yoda-will.html -- http://www.patchspace.co.uk/ http://www.linkedin.com/in/ashleymoran http://aviewfromafar.net/ http://twitter.com/ashleymoran

Re: [rspec-users] [rspec] be_something accepts nils

2009-03-13 Thread Ashley Moran
On 13 Mar 2009, at 16:34, Matt Wynne wrote: The expanded form of @cow.should_not be_hungry is @cow.hungry?.should_not be Pat Like yoda sounds, that does And enlightened, I am =) Thanks Pat -- http://www.patchspace.co.uk/ http://www.linkedin.com/in/ashleymoran http://aviewfromafar.net/ ht

Re: [rspec-users] [rspec] be_something accepts nils

2009-03-13 Thread Matt Wynne
On 13 Mar 2009, at 15:42, Pat Maddox wrote: On Mar 13, 2009, at 5:17 AM, Ashley Moran wrote: Hi Just noticed that the behaviour of @cow.should_not be_hungry is not the same as @cow.hungry?.should == false # nil also passes Don't know how this has escaped me for so long =) What's the thi

Re: [rspec-users] [rspec] be_something accepts nils

2009-03-13 Thread Pat Maddox
On Mar 13, 2009, at 5:17 AM, Ashley Moran wrote: Hi Just noticed that the behaviour of @cow.should_not be_hungry is not the same as @cow.hungry?.should == false # nil also passes Don't know how this has escaped me for so long =) What's the thinking behind this? You can already do @cow

Re: [rspec-users] [rspec] be_something accepts nils

2009-03-13 Thread Mark Wilden
On Fri, Mar 13, 2009 at 5:17 AM, Ashley Moran > > Just noticed that the behaviour of > > �...@cow.should_not be_hungry > > is not the same as > > �...@cow.hungry?.should == false # nil also passes > > Don't know how this has escaped me for so long =) > > What's the thinking behind this?  You can al