Skip to content

Instantly share code, notes, and snippets.

@manlycode
Created April 22, 2010 19:52
Show Gist options
  • Save manlycode/375727 to your computer and use it in GitHub Desktop.
Save manlycode/375727 to your computer and use it in GitHub Desktop.
class FooController < ApplicationController
def index; render :text => "foos"; end
end
describe FooController do
describe ".require_user" do
it "should redirect to the login url" do
get :index
response.should redirect_to(login_url)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment