summaryrefslogtreecommitdiff
path: root/spec/controllers/import
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-08 16:49:01 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-06-08 16:50:05 +0200
commit13d941e185c3ca1e9ad54c97f878e9cfdd32e5aa (patch)
tree9fdbc38329627a7ba3e3f36ba5313cfe80cdb4e9 /spec/controllers/import
parent722211cddfaeba38f678cc523755af1ce645cb5a (diff)
downloadgitlab-ce-13d941e185c3ca1e9ad54c97f878e9cfdd32e5aa.tar.gz
Make Omniauth providers specs to not modify global configuration
Diffstat (limited to 'spec/controllers/import')
-rw-r--r--spec/controllers/import/import_spec_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/import/import_spec_helper.rb b/spec/controllers/import/import_spec_helper.rb
index 9d7648e25a7..6710962f082 100644
--- a/spec/controllers/import/import_spec_helper.rb
+++ b/spec/controllers/import/import_spec_helper.rb
@@ -28,6 +28,6 @@ module ImportSpecHelper
app_id: 'asd123',
app_secret: 'asd123'
)
- Gitlab.config.omniauth.providers << provider
+ allow(Gitlab.config.omniauth).to receive(:providers).and_return([provider])
end
end