Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-09-18 22:20:43 +0300
committerKamil TrzciƄski <ayufan@ayufan.eu>2018-09-18 22:20:43 +0300
commitd236a6c2b2e22199367c6e17c470523b587374ab (patch)
tree30c38895821994be8a24f0edbc0d555a8519b5d1 /spec/helpers/auto_devops_helper_spec.rb
parent354f0bccbf8d530fbb5a1eb2b3cea931c644cc59 (diff)
Resolve "Enable Auto DevOps by default for self managed instances of GitLab"
Diffstat (limited to 'spec/helpers/auto_devops_helper_spec.rb')
-rw-r--r--spec/helpers/auto_devops_helper_spec.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/helpers/auto_devops_helper_spec.rb b/spec/helpers/auto_devops_helper_spec.rb
index 1950c2b129b..75c30dbfe48 100644
--- a/spec/helpers/auto_devops_helper_spec.rb
+++ b/spec/helpers/auto_devops_helper_spec.rb
@@ -16,7 +16,15 @@ describe AutoDevopsHelper do
subject { helper.show_auto_devops_callout?(project) }
- context 'when all conditions are met' do
+ context 'when auto devops is implicitly enabled' do
+ it { is_expected.to eq(false) }
+ end
+
+ context 'when auto devops is not implicitly enabled' do
+ before do
+ Gitlab::CurrentSettings.update!(auto_devops_enabled: false)
+ end
+
it { is_expected.to eq(true) }
end