debian-mirror-gitlab/spec/initializers/asset_proxy_setting_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
405 B
Ruby
Raw Normal View History

2019-12-26 22:10:19 +05:30
# frozen_string_literal: true
2019-09-04 21:01:54 +05:30
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe 'Asset proxy settings initialization' do
2019-09-04 21:01:54 +05:30
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