diff options
| author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-08 16:49:01 +0200 |
|---|---|---|
| committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-08 16:50:05 +0200 |
| commit | 13d941e185c3ca1e9ad54c97f878e9cfdd32e5aa (patch) | |
| tree | 9fdbc38329627a7ba3e3f36ba5313cfe80cdb4e9 /spec/controllers | |
| parent | 722211cddfaeba38f678cc523755af1ce645cb5a (diff) | |
| download | gitlab-ce-13d941e185c3ca1e9ad54c97f878e9cfdd32e5aa.tar.gz | |
Make Omniauth providers specs to not modify global configuration
Diffstat (limited to 'spec/controllers')
| -rw-r--r-- | spec/controllers/import/import_spec_helper.rb | 2 |
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 |
