Allow using mountable engine route helpers in System Tests

This commit is contained in:
Chalo Fernandez 2019-11-20 15:19:31 -06:00
parent ab9e022461
commit fa83cbca14
1 changed files with 1 additions and 0 deletions

View File

@ -165,6 +165,7 @@ module ActionDispatch
if ActionDispatch.test_app
Class.new do
include ActionDispatch.test_app.routes.url_helpers
include ActionDispatch.test_app.routes.mounted_helpers
def url_options
default_url_options.reverse_merge(host: Capybara.app_host || Capybara.current_session.server_url)