[rspec-users] How do I include routing path helpers?

Steve vertebrate at gmail.com
Sun Nov 14 02:49:11 EST 2010

The issue is actually before getting to anything Capybara related.
It's coming from my call to member_path @member in my spec to
determine the route path to use. Looking at it this way the error
makes more sense. Not sure how much fudging I would need to do to
simulate there being a request there for the routing helpers to work
off of.

On Nov 13, 2:31 pm, Evgeniy Dolzhenko <dolze... at gmail.com> wrote:
> We're into some horrible throw-it-and-see-if-it-works loop now, but I
> can tell you
> here is what I use in my `before` blocks to test the subdomain routing
> in controller specs:
> request.env.merge!('HTTP_HOST' => 'hi5.test.host')

More information about the rspec-users mailing list