Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (20 sloc) 0.569 kb
require "spec_helper"
describe "Logged in users" do
before do
@user = make_user('login' => 'defunkt')
login_as @user
end
it "greets the user" do
get "/"
last_response.body.should eql("Hello there, defunkt!")
end
it "logs the user out" do
get "/"
get "/logout"
last_response.status.should eql(302)
last_response.headers['Location'].should eql("https://github.com")
get "/"
last_response.status.should eql(302)
last_response.headers['Location'].should =~ %r{^https://github\.com/login/oauth/authorize}
end
end
Jump to Line
Something went wrong with that request. Please try again.