[rspec-users] Can you explain this code to me?

2008-02-07 Thread Pito Salas
I am experimenting with the restful-authentication plug in and I see that it has generated an rspec encantation which I had not seen before: it 'allows signup' do lambda do create_user response.should be_redirect end.should change(User, :count).by(1) end What does the

Re: [rspec-users] Can you explain this code to me?

2008-02-07 Thread David Chelimsky
On Feb 7, 2008 5:26 PM, Pito Salas [EMAIL PROTECTED] wrote: I am experimenting with the restful-authentication plug in and I see that it has generated an rspec encantation which I had not seen before: it 'allows signup' do lambda do create_user response.should be_redirect

Re: [rspec-users] Can you explain this code to me?

2008-02-07 Thread Jarkko Laine
On 8.2.2008, at 1.26, Pito Salas wrote: I am experimenting with the restful-authentication plug in and I see that it has generated an rspec encantation which I had not seen before: it 'allows signup' do lambda do create_user response.should be_redirect end.should