提交 8fde863d 编写于 作者: E eileencodes

Allow using mountable engine route helpers in System Tests

Backport of #37757
Co-authored-by: NChalo Fernandez <chalofa@gmail.com>
上级 e6fe1378
......@@ -122,6 +122,7 @@ def initialize(*) # :nodoc:
@proxy_route = 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.merge(host: Capybara.app_host)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册