Re: [rspec-users] change() vs change{}

2012-10-24 Thread David Chelimsky
On Wed, Oct 24, 2012 at 12:26 PM, Kevin McCaughey wrote: > Hi, > > I am doing the rails tutorial and there is a line: > > expect { click_button submit }.not_to change(User, :count) > > When I looked up the rspec docs and book too, I found: > > change {} documentation (using curly brackets). Not s

[rspec-users] change() vs change{}

2012-10-24 Thread Kevin McCaughey
Hi, I am doing the rails tutorial and there is a line: expect { click_button submit }.not_to change(User, :count) When I looked up the rspec docs and book too, I found: change {} documentation (using curly brackets). Could someone tell me what the difference is, and if I use a block for the ab