Skip to content

Instantly share code, notes, and snippets.

@alg
Created October 25, 2012 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alg/3952537 to your computer and use it in GitHub Desktop.
Save alg/3952537 to your computer and use it in GitHub Desktop.
describe SomeController do
context "if user is not logged in" do
[ :show, :edit, :update ].each do |action|
specify do
get action
should redirect_to login_path
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment