Created
October 25, 2012 13:27
-
-
Save alg/3952537 to your computer and use it in GitHub Desktop.
This file contains 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 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