Created
April 22, 2010 19:52
-
-
Save manlycode/375727 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
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