diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-06-01 12:55:00 +0200 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-06-01 12:55:00 +0200 |
commit | 4a50e1f0514f318d10a273d1c252d855cfb106fb (patch) | |
tree | b5ae0597bea9768e5540b49dcbb184bed462e43d /spec/services | |
parent | c0f19cc94ecb606e521afc4a39582c4dae9c5967 (diff) | |
parent | c8eb1dccabe5cd961895127dbbbf46d3eee4aebd (diff) | |
download | gitlab-ce-4a50e1f0514f318d10a273d1c252d855cfb106fb.tar.gz |
Merge branch 'current-settings-use-request-store-during-request'
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/groups/create_service_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/groups/create_service_spec.rb b/spec/services/groups/create_service_spec.rb index a97ac3ead45..71a0b8e2a12 100644 --- a/spec/services/groups/create_service_spec.rb +++ b/spec/services/groups/create_service_spec.rb @@ -13,7 +13,7 @@ describe Groups::CreateService, services: true do end context "cannot create group with restricted visibility level" do - before { allow(current_application_settings).to receive(:restricted_visibility_levels).and_return([Gitlab::VisibilityLevel::PUBLIC]) } + before { allow_any_instance_of(ApplicationSetting).to receive(:restricted_visibility_levels).and_return([Gitlab::VisibilityLevel::PUBLIC]) } it { is_expected.not_to be_persisted } end end |