Skip to content

Instantly share code, notes, and snippets.

@gotwalt
Created July 14, 2011 22:42
Show Gist options
  • Save gotwalt/1083646 to your computer and use it in GitHub Desktop.
Save gotwalt/1083646 to your computer and use it in GitHub Desktop.
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