[rspec-users] Does mock_model's :null_object option work?
hotfusionman at yahoo.com
Wed Dec 5 10:36:04 EST 2007
Uh, shouldn't they both work? I use TRUE (and FALSE) because I like the facts that a) they stand out typographically and b) they are Ruby constants. I can't believe the case of the letters matters, unless you are doing something meta-programmingy rather than just passing the value through to whatever is receiving it....
----- Original Message ----
From: Tom Stuart <tom at experthuman.com>
To: rspec-users <rspec-users at rubyforge.org>
Sent: Wednesday, December 5, 2007 7:17:06 AM
Subject: Re: [rspec-users] Does mock_model's :null_object option work?
On 5 Dec 2007, at 15:02, David Chelimsky wrote:
>> @order_address = mock_model( OrderAddress, :null_object => TRUE )
> :null_object => true (lower case) should work.
Well, I'm talking bollocks then, aren't I?
rspec-users mailing list
rspec-users at rubyforge.org
Never miss a thing. Make Yahoo your home page.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users