diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-07-18 17:32:34 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-07-18 18:48:14 +0300 |
commit | 7bd5e571256aff6de132b118f04224e56abf3228 (patch) | |
tree | 4ec27daa73e2588299b73686ee8954ac299915b1 /spec/support/stub_configuration.rb | |
parent | 1ed6d1541c7973c08cdd4c1906ddcc0c3db893e3 (diff) |
Instead of adding master, stub_not_protect_default_branch
Diffstat (limited to 'spec/support/stub_configuration.rb')
-rw-r--r-- | spec/support/stub_configuration.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/stub_configuration.rb b/spec/support/stub_configuration.rb index 48f454c7187..80ecce92dc1 100644 --- a/spec/support/stub_configuration.rb +++ b/spec/support/stub_configuration.rb @@ -9,6 +9,11 @@ module StubConfiguration .to receive_messages(messages) end + def stub_not_protect_default_branch + stub_application_setting( + default_branch_protection: Gitlab::Access::PROTECTION_NONE) + end + def stub_config_setting(messages) allow(Gitlab.config.gitlab).to receive_messages(messages) end |