summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2019-03-07 10:12:59 +1300
committerThong Kuah <tkuah@gitlab.com>2019-03-07 10:12:59 +1300
commit1c0a1c38a8f91de65f2fe88380ee2f9e1812ff29 (patch)
tree7c3bb83beb225d80ee8e4fc4510f7d03da16cc92
parentf7b9e8c46cc9feebfe9a96e5016308bd8bcaeb76 (diff)
downloadgitlab-ce-1c0a1c38a8f91de65f2fe88380ee2f9e1812ff29.tar.gz
-rw-r--r--spec/helpers/auto_devops_helper_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/helpers/auto_devops_helper_spec.rb b/spec/helpers/auto_devops_helper_spec.rb
index b0eba8b5d60..727bcaa1051 100644
--- a/spec/helpers/auto_devops_helper_spec.rb
+++ b/spec/helpers/auto_devops_helper_spec.rb
@@ -192,6 +192,13 @@ describe AutoDevopsHelper do
let(:group) { create(:group, :auto_devops_disabled) }
it { is_expected.to be_nil }
+
+ context 'when grandparent is enabled' do
+ let(:root_parent) { create(:group, :auto_devops_enabled) }
+ let(:group) { create(:group, :auto_devops_disabled, parent: root_parent) }
+
+ it { is_expected.to be_nil }
+ end
end
end
end