Skip to content
Browse files

Call thru to app in mock request_phase. Closes #152

  • Loading branch information...
1 parent 1343dd7 commit 61e64c3efa165f3952289884fe41d5c3de6bf90a Michael Bleigh committed Feb 3, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 oa-core/lib/omniauth/strategy.rb
View
2 oa-core/lib/omniauth/strategy.rb
@@ -44,6 +44,8 @@ def call!(env)
def mock_call!(env)
if current_path == request_path
+ status, headers, body = *call_app!
+ @response = Rack::Response.new(body, status, headers)
redirect callback_path
elsif current_path == callback_path
@env['omniauth.auth'] = OmniAuth.mock_auth_for(name.to_sym)

0 comments on commit 61e64c3

Please sign in to comment.
Something went wrong with that request. Please try again.