Sha256: fb56e3f6f0a050313df05693d9ab0900540394be5a849aa12a811469c5d81276
Contents?: true
Size: 564 Bytes
Versions: 2
Compression:
Stored size: 564 Bytes
Contents
def stub_successful_facebook_request stub_request( :get, "https://graph.facebook.com/me?access_token=valid_token" ).to_return( :status => 200, :body => '', :headers => {} ) end def stub_unsuccessful_facebook_request stub_request( :get, "https://graph.facebook.com/me?access_token=invalid_token" ).to_return( :status => 400, :body => '{ "error": { "message": "Error message.", "type": "OAuthException", "code": 190, "error_subcode": 463 } }', :headers => {} ) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise-ios-rails-1.0.2 | spec/dummy/spec/support/helpers/oauth.rb |
devise-ios-rails-1.0.1 | spec/dummy/spec/support/helpers/oauth.rb |