Skip to content

Instantly share code, notes, and snippets.

@radar
Forked from ch1ago/session_spec.rb
Created June 13, 2012 04:54
Show Gist options
  • Select an option

  • Save radar/2921930 to your computer and use it in GitHub Desktop.

Select an option

Save radar/2921930 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe "Session" do
describe "GET /auth/facebook and /session/create (same as /auth/facebook/callback)" do
it "triggers callback, creates Bob and redirects to root" do
User.count.should == 0
Login.count.should == 0
get '/auth/facebook'
User.count.should == 1
Login.count.should == 1
response.status.should be(200)
#response.should redirect_to root_path
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment