[rspec-users] How can I set the host for testing subdomain constrained routes in RSpec 2?

DEfusion david.spurr at gmail.com
Mon Sep 6 05:37:43 EDT 2010


I've tried:
 host = 'foo.bar.com'
 host! (undefined method)
 request.host (request undefined)
 controller.request.host (controller undefined)
 @controller.request.host (undefined method `request' for nil:NilClass)


More information about the rspec-users mailing list