diff options
author | Hordur Freyr Yngvason <hfyngvason@gitlab.com> | 2019-06-21 14:41:41 +0300 |
---|---|---|
committer | Hordur Freyr Yngvason <hfyngvason@gitlab.com> | 2019-06-21 14:41:51 +0300 |
commit | 7c502146e8eecdcbc41cd674b4206477fa799031 (patch) | |
tree | 47f76444d1dccd617690279db2629d730a311a65 | |
parent | 091cfba70c9a3bcc6e87972f6e489966d7b212ae (diff) |
Stub Project#any_runners? to fix test
-rw-r--r-- | spec/features/projects/show/user_interacts_with_auto_devops_banner_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/features/projects/show/user_interacts_with_auto_devops_banner_spec.rb b/spec/features/projects/show/user_interacts_with_auto_devops_banner_spec.rb index baf715000a3..c2cc8900dd4 100644 --- a/spec/features/projects/show/user_interacts_with_auto_devops_banner_spec.rb +++ b/spec/features/projects/show/user_interacts_with_auto_devops_banner_spec.rb @@ -26,6 +26,7 @@ describe 'Project > Show > User interacts with auto devops implicitly enabled ba context 'when AutoDevOps is implicitly enabled' do before do + allow_any_instance_of(Project).to receive(:any_runners?).and_return true stub_application_setting(auto_devops_enabled: true) visit project_path(project) |