Undefined local variable or method `request' —in test

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
#Spec::Example::ExampleGroup::Subclass_1::Subclass_1:0x10057d518

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?

Thanks!
Elliott G

Any thoughts on this one guys?

Thanks

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs