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

Steve vertebrate at gmail.com
Sun Nov 14 02:30:51 EST 2010

We are indeed. There is no request var available in Capybara. I think
that is supposed to be taken care of by Capybara.default_host which I
have set, but still no dice. I see exciting times ahead trying to get
this working.

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