Skip to content

Instantly share code, notes, and snippets.

@caironoleto
Created October 25, 2009 19:17
Show Gist options
  • Save caironoleto/218201 to your computer and use it in GitHub Desktop.
Save caironoleto/218201 to your computer and use it in GitHub Desktop.
describe PostController
describe "GET index" do
it "should redirect to login path without authenticated" do
get :index
response.should redirect_to(new_user_session_url)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment