diff options
Diffstat (limited to 'spec/support/helpers/stub_configuration.rb')
-rw-r--r-- | spec/support/helpers/stub_configuration.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/support/helpers/stub_configuration.rb b/spec/support/helpers/stub_configuration.rb index 6a832ca97d1..e19f230d8df 100644 --- a/spec/support/helpers/stub_configuration.rb +++ b/spec/support/helpers/stub_configuration.rb @@ -113,6 +113,14 @@ module StubConfiguration allow(Gitlab.config.rack_attack.git_basic_auth).to receive_messages(to_settings(messages)) end + def stub_service_desk_email_setting(messages) + allow(::Gitlab.config.service_desk_email).to receive_messages(to_settings(messages)) + end + + def stub_packages_setting(messages) + allow(::Gitlab.config.packages).to receive_messages(to_settings(messages)) + end + private # Modifies stubbed messages to also stub possible predicate versions |