Skip to content

Instantly share code, notes, and snippets.

@carols10cents
Forked from colindean/gist:1261980
Created October 4, 2011 18:08
Show Gist options
  • Save carols10cents/1262342 to your computer and use it in GitHub Desktop.
Save carols10cents/1262342 to your computer and use it in GitHub Desktop.
test generator failing
# Try this (minispec):
describe "not logged in" do
[:index, :new].each do |method|
it "should redirect to login on #{method}" do
get method
assert_redirect_to login_url
end
end
end
@colindean
Copy link

Unfortunately, the get is failing now because it's not defined. Maybe there's something I should be requiring but I'm not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment