I have seen both styles used widely: #1 lambda { raise "Boom" }.should raise_error
and #2 expect { raise "Boom" }.to raise_error
. I like expect..to more as it reads better and hides the creation of the proc.
I looked at rspec code and it seems expect..to is suggested, however I regularly come across libraries using lambda..should. Is expect..to newer and hence not "famous" yet?