diff options
| author | Rémy Coutable <remy@rymai.me> | 2017-03-28 14:12:32 +0200 |
|---|---|---|
| committer | Rémy Coutable <remy@rymai.me> | 2017-03-28 14:12:32 +0200 |
| commit | db8a8afc6135a4fadff6382c6ac43e217af29bc7 (patch) | |
| tree | 93ccb6ef728dc66279d8082b142cbb05cd026433 /spec/services/groups | |
| parent | ad831ace7ed8d2ed999b15f8350aaa51f0490124 (diff) | |
| download | gitlab-ce-db8a8afc6135a4fadff6382c6ac43e217af29bc7.tar.gz | |
Add a new `stub_mattermost_setting` stub helper to properly stub Mattermost settings
Signed-off-by: Rémy Coutable <remy@rymai.me>
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 ec89b540e6a..bcb62429275 100644 --- a/spec/services/groups/create_service_spec.rb +++ b/spec/services/groups/create_service_spec.rb @@ -44,7 +44,7 @@ describe Groups::CreateService, '#execute', services: true do let!(:service) { described_class.new(user, params) } before do - Settings.mattermost['enabled'] = true + stub_mattermost_setting(enabled: true) end it 'create the chat team with the group' do |
