Skip to content

Instantly share code, notes, and snippets.

@chrislerum
Created July 10, 2010 17:04
Show Gist options
  • Save chrislerum/470861 to your computer and use it in GitHub Desktop.
Save chrislerum/470861 to your computer and use it in GitHub Desktop.
spec spec/controllers/attachments_controller_spec.rb
** Erubis 2.6.5
F
1)
'AttachmentsController when trying to access attachment as a guest should fail to access index' FAILED
expected redirect to "/users/sign_in", got redirect to "http://test.host/users/sign_in?unauthenticated=true"
./spec/controllers/attachments_controller_spec.rb:24:
Finished in 0.01157 seconds
1 example, 1 failure
describe "when trying to access attachment as a guest" do
it "should fail to access index" do
get 'index'
end
after do
response.should redirect_to(new_user_session_path)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment