SkyWriter/omniauth — comment on commit 5d411c50725a2ca656d091acc1b8ce232ede7c2a
File:  line 0
By SkyWriter:

And this will not work at all (to my own surprise):

class TestCase

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

Giving the following:

1.9.3-p0 :013 > puts test.mock_request_call
NameError: undefined local variable or method `response' for #
from (irb):8:in `mock_request_call'
from (irb):13
from /Users/sky/.rvm/rubies/ruby-1.9.3-p0/bin/irb:16:in `

'