Sha256: 71942de504b58d7a4e5df42535c371220bef96b7b9c551bcf1976fdc84dd1a0c
Contents?: true
Size: 679 Bytes
Versions: 1
Compression:
Stored size: 679 Bytes
Contents
module Passport module Stubs module Oauth def stub_oauth_consumer(fake_token = "a_token", fake_secret = "a_secret", fake_id = "a_id") # token_request(http_method, path, token = nil, request_options = {}, *arguments) stub.instance_of(OAuth::Consumer).token_request do |http_method, path, token, request_options, *arguments| {:oauth_token => fake_token, :oauth_token_secret => fake_secret, :user_id => fake_id} end end def stub_oauth_redirect stub(Passport::Oauth::Protocol).redirect end def stub_oauth_clear_session stub(Passport::Oauth::Protocol).clear end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
passport-0.1.1 | test/dummy/stubs.rb |