I am working on a small gem patch… The code in question is in a
module within /lib. I am calling request.env[‘HTTP_REFERER’] and
getting the desired results as implementation in the dev env.
However, when I run my RSpec spec, I get:
undefined local variable or method `request’ for
I am assuming that somehow “request” is not getting initialized when
in the test env. etc… Coming from the test/unit and Shoulda world, I
know very little about RSpec, perhaps this is playing a role in my
problem as well.
Any insight here?