Sha256: ea27ef36f88757eaa80ba15688167088b416271871ab4be249e7ce159e67affd
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
module OmniAuthTwitterHelper def create_request_env(request_token, request_secret) { 'rack.input' => StringIO.new(""), 'rack.session' => { "session_id" => "123456", "callback_path" => "/", "omniauth.params" => {}, "omniauth.origin" => "http://example.com/authentication", "oauth" => { "twitter" => { "callback_confirmed" => true, "request_token" => request_token, "request_secret" => request_secret } } }, 'rack.url_scheme' => "http", "GATEWAY_INTERFACE" => "CGI/1.1", "PATH_INFO" => "/users/auth/twitter", "QUERY_STRING" => "", "REMOTE_ADDR" => "127.0.0.1", "REMOTE_HOST" => "localhost.localdomain", "REQUEST_METHOD" => "GET", "REQUEST_URI" => "http://example.com/users/auth/twitter", "SERVER_NAME" => "example.com", "SERVER_PORT" => "80", "SERVER_PROTOCOL" => "HTTP/1.1", "HTTP_HOST" => "example.com", } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twimock-0.0.2 | spec/support/omniauth_twitter_helper.rb |
twimock-0.0.1 | spec/support/omniauth_twitter_helper.rb |