lib/rspectacular/mock_authentications/omniauth/facebook.rb in rspectacular-0.31.0 vs lib/rspectacular/mock_authentications/omniauth/facebook.rb in rspectacular-0.33.0
- old
+ new
@@ -1,10 +1,10 @@
module OmniAuth
+module MockAuthentications
module Facebook
-module MockAuthentication
- def self.user
- {
+ def self.authentication
+ OmniAuth::AuthHash.new(
'provider' => 'facebook',
'uid' => '100002971692646',
'credentials' => {
'token' => 'my_facebook_token'
},
@@ -34,10 +34,10 @@
'gender' => 'female',
'locale' => 'en_US',
'updated_time' => '2011-09-11T17:00:51+0000'
}
}
- }
+ )
end
end
end
end