Re: Does mock_model's :null_object option work?

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…

Al

----- Original Message ----
From: Tom S. [email protected]
To: rspec-users [email protected]
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 C. 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
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

  ____________________________________________________________________________________

Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs

On Dec 5, 2007 9:36 AM, Al Chou [email protected] wrote:

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…

Did you see my earlier email acknowledging that the problem was not
true/TRUE, but was likely the version of the plugin you are using?
1.0.8 does not support :null_object. Trunk does.