We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dce6e59 commit 1875cabCopy full SHA for 1875cab
test/test_app.rb
@@ -3,6 +3,9 @@ class TestApp < Rails::Application
3
config.eager_load = false
4
config.secret_key_base = 'abc123'
5
end
6
+ config.after_initialize do
7
+ Rails.application.routes.default_url_options = { host: 'http://example.com' }
8
+ end
9
10
# Set up a logger to avoid creating a log directory on every run.
11
config.logger = Logger.new(nil)
test/test_helper.rb
@@ -20,7 +20,5 @@ module TestHelper
20
ActionController::TestCase.class_eval do
21
def setup
22
@routes = TestHelper::Routes
23
-
24
- Rails.application.routes.default_url_options[:host] = 'http://example.com' if defined?(Rails)
25
26
0 commit comments