diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-08-20 23:21:22 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-08-20 23:21:22 +0300 |
commit | 48e25a019a7dacbadeb3a49ed96e41d2c2241feb (patch) | |
tree | 282df780a058b5265d516eaa8d86a3ecbce22b1f /spec/support/stub_configuration.rb | |
parent | 6110e175dc3bcf6d9ef416c7b95696efe509d02b (diff) |
Add stub_reply_by_email_setting helper.
Diffstat (limited to 'spec/support/stub_configuration.rb')
-rw-r--r-- | spec/support/stub_configuration.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/stub_configuration.rb b/spec/support/stub_configuration.rb index e4004ec8f79..ef3a120d44a 100644 --- a/spec/support/stub_configuration.rb +++ b/spec/support/stub_configuration.rb @@ -17,6 +17,10 @@ module StubConfiguration allow(Gitlab.config.gravatar).to receive_messages(messages) end + def stub_reply_by_email_setting(messages) + allow(Gitlab.config.reply_by_email).to receive_messages(messages) + end + private # Modifies stubbed messages to also stub possible predicate versions |