diff options
author | DJ Mountney <david@twkie.net> | 2016-05-27 19:05:52 -0700 |
---|---|---|
committer | DJ Mountney <david@twkie.net> | 2016-05-27 19:05:52 -0700 |
commit | 7d57b110934f50225142789a93a0d4f54cf446f7 (patch) | |
tree | 5bda1089b6817a96d400c95b3d0c207a6325076f /spec/services/groups | |
parent | 14b0fb516ce857b80ef447109c9dfc9692869148 (diff) | |
download | gitlab-ce-7d57b110934f50225142789a93a0d4f54cf446f7.tar.gz |
Update tests for the current_application_settings request store changes
Diffstat (limited to 'spec/services/groups')
-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 |