diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-02-24 13:25:42 +0100 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-02-24 13:25:42 +0100 |
commit | 9f0e23d6093d67d368485e2ac7e4df0059935770 (patch) | |
tree | 1306e799f14360a76336f7622df21f4503c5939d /spec | |
parent | 4535129e45cc98ab5a1f17f0950a93bd062e3a5a (diff) | |
download | gitlab-ce-9f0e23d6093d67d368485e2ac7e4df0059935770.tar.gz |
Fix tests
Diffstat (limited to 'spec')
-rw-r--r-- | spec/services/groups/create_service_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/services/groups/create_service_spec.rb b/spec/services/groups/create_service_spec.rb index d8181f73110..b11483fb407 100644 --- a/spec/services/groups/create_service_spec.rb +++ b/spec/services/groups/create_service_spec.rb @@ -40,9 +40,13 @@ describe Groups::CreateService, '#execute', services: true do end describe 'creating a mattermost team' do - let!(:params) { group_params.merge(create_chat_team: true) } + let!(:params) { group_params.merge(create_chat_team: "true") } let!(:service) { described_class.new(user, params) } + before do + Settings.mattermost['enabled'] = true + end + it 'triggers the service' do expect_any_instance_of(Mattermost::CreateTeamService).to receive(:execute) |