ad05e48863
User images and videos will get proxied through the Camo server in order to keep malicious sites from collecting the IP address of users.
13 lines
368 B
Ruby
13 lines
368 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'Asset proxy settings initialization' do
|
|
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
|