intridea/omniauth — pull request #576 by SkyWriter (2012-02-09 20:39:14+00:00)
Title: Strategy#mock_request_call bug

This code illustrates the issue:

class TestCase

attr_reader :response

def initialize
@response = "What will be returned"
end

def call_through_to_app
"What is supposed to be returned"
end

def mock_request_call
return response if response = call_through_to_app
end
end

test = TestCase.new
puts test.mock_request_call

This code in _Strategy_ does not seem to do what it was supposed to be doing. Fixing this made my OmniAuth Facebook/Twitter tests green again.