diff options
| author | Douwe Maan <douwe@gitlab.com> | 2015-08-20 13:21:22 -0700 |
|---|---|---|
| committer | Douwe Maan <douwe@gitlab.com> | 2015-08-20 13:21:22 -0700 |
| commit | 48e25a019a7dacbadeb3a49ed96e41d2c2241feb (patch) | |
| tree | 282df780a058b5265d516eaa8d86a3ecbce22b1f /spec/support | |
| parent | 6110e175dc3bcf6d9ef416c7b95696efe509d02b (diff) | |
| download | gitlab-ce-48e25a019a7dacbadeb3a49ed96e41d2c2241feb.tar.gz | |
Add stub_reply_by_email_setting helper.
Diffstat (limited to 'spec/support')
| -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 |
