Skip to content

MIKAMAYHEM

Mikamai developers blog

Hire us!

Tag: rails 3

Set subdomain in Rails 3 request specs

Posted on September 29, 2011 by Elia Schito

Every request spec runs inside an Integration::Session hence just add:

before { host! 'mysubdomain.example.com' }

This of course works for Rails3+Rspec2.

Tagged rails, rails 3, rubyLeave a Comment on Set subdomain in Rails 3 request specs
© 2021 MIKAMAYHEM is a property of MIKAMAI s.r.l.
Privacy policy  -  Cookie policy