2019-10-20 17:06:17 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-02-20 18:51:55 -05:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 05:08:32 -04:00
|
|
|
RSpec.describe 'Asset proxy settings initialization' do
|
2019-02-20 18:51:55 -05:00
|
|
|
describe '#asset_proxy' do
|
|
|
|
it 'defaults to disabled' do
|
|
|
|
expect(Banzai::Filter::AssetProxyFilter).to receive(:initialize_settings)
|
|
|
|
|
|
|
|
require_relative '../../config/initializers/asset_proxy_settings'
|
|
|
|
|
|
|
|
expect(Gitlab.config.asset_proxy.enabled).to be_falsey
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|