[rspec-users] alias :calling :lambda

Scott Taylor mailing_lists at railsnewbie.com
Wed Sep 19 23:04:52 EDT 2007

On Sep 19, 2007, at 10:17 PM, Jed Hurt wrote:

> Sprinkling my examples with 'lambda' has always seemed like a bit of a
> wart to me. I've gotten into the habit of adding 'alias :calling
> :lambda' to my spec suites. My examples then look like:
> calling { Foo }.should raise_error
> calling { Bar }.should_not raise_error
> Is there a reason that RSpec core has chosen not to make exception
> expectations more sugary?

There was a long discussion of this in the tracker + mailing list.   
Did you not see it (It almost seems coincidental that you ask this  
question at the current time).


More information about the rspec-users mailing list