Created
July 14, 2011 22:42
-
-
Save gotwalt/1083646 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
require 'spec_helper' | |
require 'rack/test' | |
require 'support/vcr' | |
describe User do | |
describe '#find_or_initialize_by_facebook_token' do | |
puts "it gets here" | |
it "creates a new user for a valid" do | |
puts "but never gets inside here" | |
EM.synchrony do | |
VCR.use_cassette 'facebook_graph' do | |
user = User.find_or_initialize_by_facebook_token("valid_token") | |
EM.stop | |
assert { true } | |
assert { user.first_name == "Aaron" } | |
end | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment