spec/facemock/fb_graph/user_spec.rb in facemock-0.0.5 vs spec/facemock/fb_graph/user_spec.rb in facemock-0.0.6

- old
+ new

@@ -1,8 +1,10 @@ require 'spec_helper' describe Facemock::FbGraph::User do + include ApplicationCreateHelper + let(:db_name) { ".test" } let(:facebook_app_id) { "100000000000000" } let(:facebook_app_secret) { "test_secret" } @@ -13,9 +15,10 @@ after { @database.drop } describe '.me' do context 'when access_token is correct' do before do + create_application({ id: facebook_app_id, secret: "test_secret" }) app = Facemock::FbGraph::Application.new(facebook_app_id, secret: facebook_app_secret) @user = app.test_user! @access_token = @user.access_token end