subdomainでrspecしたいがハマる。
かいけつしてない。
そこそこ前に解決してた。
Gistの通りなんだが、
def switch_domain Capybara.app_host = "http://sub.#{DEFAULT_HOST}:#{DEFAULT_PORT}" end
参考にさせていただきましたページ。ざーーーす!
Support for Rspec / Capybara subdomain integration testing
Rails + Grape + Rspec でサブドメイン(constraints)のテストを行う時は integration_session.host= を使う - フリーエンジニアライフ