mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 23:06:50 +00:00
Fix path where test-app is getting configured
This commit is contained in:
parent
dce6e59772
commit
1875cab64a
@ -3,6 +3,9 @@ class TestApp < Rails::Application
|
|||||||
config.eager_load = false
|
config.eager_load = false
|
||||||
config.secret_key_base = 'abc123'
|
config.secret_key_base = 'abc123'
|
||||||
end
|
end
|
||||||
|
config.after_initialize do
|
||||||
|
Rails.application.routes.default_url_options = { host: 'http://example.com' }
|
||||||
|
end
|
||||||
|
|
||||||
# Set up a logger to avoid creating a log directory on every run.
|
# Set up a logger to avoid creating a log directory on every run.
|
||||||
config.logger = Logger.new(nil)
|
config.logger = Logger.new(nil)
|
||||||
|
|||||||
@ -20,7 +20,5 @@ end
|
|||||||
ActionController::TestCase.class_eval do
|
ActionController::TestCase.class_eval do
|
||||||
def setup
|
def setup
|
||||||
@routes = TestHelper::Routes
|
@routes = TestHelper::Routes
|
||||||
|
|
||||||
Rails.application.routes.default_url_options[:host] = 'http://example.com' if defined?(Rails)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user