Read about our upcoming Code of Conduct on this issue

Commit ebf897e9 authored by Sean McGivern's avatar Sean McGivern
Browse files

Fix import helper spec when a previous spec stubs settings

This should use stub_omniauth_setting, not do it manually.
parent ee6047de4666
......@@ -28,12 +28,10 @@
describe '#provider_project_link' do
context 'when provider is "github"' do
let(:github_server_url) { nil }
let(:provider) { OpenStruct.new(name: 'github', url: github_server_url) }
before do
setting = Settingslogic.new('name' => 'github')
setting['url'] = github_server_url if github_server_url
allow(Gitlab.config.omniauth).to receive(:providers).and_return([setting])
stub_omniauth_setting(providers: [provider])
end
context 'when provider does not specify a custom URL' 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