On Feb 7, 2008 9:26 PM, Pito Salas <[EMAIL PROTECTED]> wrote: > What does the combination of a lambda and a .should mean?
I'm new to the list, but I think I can answer that :). >From what I know, it means that RSpec will run the lambda's code and check that it had the effect specified in the "should" call. And from that I can determine by looking at the two incantations you posted, the lambda is used because the code can throw an error, and the spec's author didn't want the first error to prevent the outer "should" from being checked. -- Bira http://compexplicita.wordpress.com http://compexplicita.tumblr.com _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users