Commit 770ba383 authored by Stan Hu's avatar Stan Hu 🔴

Merge branch 'fix-import-helper-spec' into 'master'

Fix import helper spec when a previous spec stubs settings

Closes gitlab-ee#5303

See merge request gitlab-org/gitlab-ce!17776
parents 3e20b83b 08f754c6
Pipeline #18976367 failed with stages
in 34 minutes and 51 seconds
......@@ -28,12 +28,10 @@ describe ImportHelper do
describe '#provider_project_link' do
context 'when provider is "github"' do
let(:github_server_url) { nil }
let(:provider) { 'github', url: github_server_url) }
before do
setting ='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])
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