[rspec-users] Newbie: lambda do...end.should change(Model, :count).by(1). Doesn't work

Craig Demyanovich cdemyanovich at gmail.com
Sat May 10 09:40:16 EDT 2008


A syntax note from the RSpec docs: "blocks passed to should change and
should_not change must use the {} form (do/end is not supported)."

http://rspec.info/rdoc/classes/Spec/Matchers.html#M000386

Regards,
Craig


More information about the rspec-users mailing list