Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-03-28 15:12:32 +0300
committerRémy Coutable <remy@rymai.me>2017-03-28 15:12:32 +0300
commitdb8a8afc6135a4fadff6382c6ac43e217af29bc7 (patch)
tree93ccb6ef728dc66279d8082b142cbb05cd026433 /spec/support
parentad831ace7ed8d2ed999b15f8350aaa51f0490124 (diff)
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/support')
-rw-r--r--spec/support/stub_configuration.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/stub_configuration.rb b/spec/support/stub_configuration.rb
index f40ee862df8..444adcc1906 100644
--- a/spec/support/stub_configuration.rb
+++ b/spec/support/stub_configuration.rb
@@ -21,6 +21,10 @@ module StubConfiguration
allow(Gitlab.config.incoming_email).to receive_messages(messages)
end
+ def stub_mattermost_setting(messages)
+ allow(Gitlab.config.mattermost).to receive_messages(messages)
+ end
+
private
# Modifies stubbed messages to also stub possible predicate versions