[rspec-users] Specing based on user roles

Fernando Perez lists at ruby-forum.com
Tue Nov 11 17:49:17 EST 2008


> 
> I am using restful_authentication. I tried to look at their specs, but 
> they are unreadable. So I am trying to throw together my own 
> authentication mocker/stuber but with no luck.

Just to clear things out, can you tell me which snippet is correct:

1)
get :index
response.should be_redirect

2)
response.should be_redirect
get :index



It appears to me that 1) is correct, as 2) seems to be messing up all my 
specs.
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list