Created
July 10, 2010 17:04
-
-
Save chrislerum/470861 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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