John Feminella wrote in post #1012869:
> In other words, it
> needs a "before" to start with and an "after" to compare to. With a
> lambda, this is accomplished by measuring the thing you want to check
> before the lambda is run, and then again after it's run.
>

Okay, I sort of sussed that out myself.  But the question remains, how 
can should_not() expect a lambda in one case, and then successfully 
operate on a String in another case, like here:


@user.encrypted_password.should_not be_blank



 Does the definition of should_not check the type of the receiver before 
executing?  I can't find any docs for the definition of should_not().

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to