Skip to content

Instantly share code, notes, and snippets.

@ch1ago
Created June 13, 2012 04:25
Show Gist options
  • Save ch1ago/2921862 to your computer and use it in GitHub Desktop.
Save ch1ago/2921862 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
expect do
get '/auth/facebook'
end.to change(User, :count).by(1) && change(Login, :count).by(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