summaryrefslogtreecommitdiff
path: root/spec/features/groups_spec.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-03-28 14:12:32 +0200
committerRémy Coutable <remy@rymai.me>2017-03-28 14:12:32 +0200
commitdb8a8afc6135a4fadff6382c6ac43e217af29bc7 (patch)
tree93ccb6ef728dc66279d8082b142cbb05cd026433 /spec/features/groups_spec.rb
parentad831ace7ed8d2ed999b15f8350aaa51f0490124 (diff)
downloadgitlab-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/features/groups_spec.rb')
-rw-r--r--spec/features/groups_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/groups_spec.rb b/spec/features/groups_spec.rb
index d243f9478bb..144d069b632 100644
--- a/spec/features/groups_spec.rb
+++ b/spec/features/groups_spec.rb
@@ -46,7 +46,7 @@ feature 'Group', feature: true do
describe 'Mattermost team creation' do
before do
- allow(Settings.mattermost).to receive_messages(enabled: mattermost_enabled)
+ stub_mattermost_setting(enabled: mattermost_enabled)
visit new_group_path
end