Commit e9b0b551 authored by Markus Koller's avatar Markus Koller

Merge branch '338227-fix-leaking-asset-host-setting' into 'master'

Fix asset host setting leaking to other specs

See merge request gitlab-org/gitlab!67973
parents fd6e567e 472f42bd
......@@ -7,6 +7,15 @@ RSpec.describe 'Rails asset host initializer' do
load Rails.root.join('config/initializers/rails_asset_host.rb')
end
around do |example|
old_asset_host = Rails.application.config.action_controller.asset_host
example.run
Rails.application.config.action_controller.asset_host = old_asset_host
ActionController::Base.asset_host = old_asset_host
end
subject { Rails.application.config.action_controller.asset_host }
it 'uses no asset host by default' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment