Created
June 13, 2012 04:25
-
-
Save ch1ago/2921862 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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