summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-07-07 14:34:04 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-07-07 14:34:04 -0400
commit09aec2124608977e088c93ada969132c79525d2a (patch)
treec2fcc1967d5d8ef5b81169fac51bed8de6afe3c1
parent7c35ecf7e44e5b44643b41719a67e89f99f10053 (diff)
downloadgitlab-ce-rs-issue-34847.tar.gz
Mark a subgroup-related spec as PostgreSQL-onlyrs-issue-34847
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/34847
-rw-r--r--spec/models/group_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb
index 399020953e8..066d7b9307f 100644
--- a/spec/models/group_spec.rb
+++ b/spec/models/group_spec.rb
@@ -466,13 +466,13 @@ describe Group, models: true do
it_behaves_like 'ref is protected'
end
- context 'when group has children' do
- let!(:group_child) { create(:group, parent: group) }
- let!(:variable_child) { create(:ci_group_variable, group: group_child) }
- let!(:group_child_3) { create(:group, parent: group_child_2) }
- let!(:variable_child_3) { create(:ci_group_variable, group: group_child_3) }
- let!(:group_child_2) { create(:group, parent: group_child) }
- let!(:variable_child_2) { create(:ci_group_variable, group: group_child_2) }
+ context 'when group has children', :postgresql do
+ let(:group_child) { create(:group, parent: group) }
+ let(:group_child_2) { create(:group, parent: group_child) }
+ let(:group_child_3) { create(:group, parent: group_child_2) }
+ let(:variable_child) { create(:ci_group_variable, group: group_child) }
+ let(:variable_child_2) { create(:ci_group_variable, group: group_child_2) }
+ let(:variable_child_3) { create(:ci_group_variable, group: group_child_3) }
it 'returns all variables belong to the group and parent groups' do
expected_array1 = [protected_variable, secret_variable]