Failures:
1) Group#secret_variables_for when group has children returns all variables belong to the group and parent groups
Failure/Error: expect(got_array.shift(2)).to contain_exactly(*expected_array1)
expected collection contained: [#<Ci::GroupVariable id: 12, key: "VARIABLE_12", value: nil, encrypted_value: "jkVFnyZv+WkhcQzZR9l0Ow...oup_id: 197, protected: true, created_at: "2017-07-07 15:57:12", updated_at: "2017-07-07 15:57:12">]
actual collection contained: [#<Ci::GroupVariable id: 15, key: "VARIABLE_15", value: nil, encrypted_value: "PbmjyR0H+vZqIJ8VwZDIVg...up_id: 199, protected: false, created_at: "2017-07-07 15:57:12", updated_at: "2017-07-07 15:57:12">]
the missing elements were: [#<Ci::GroupVariable id: 12, key: "VARIABLE_12", value: nil, encrypted_value: "jkVFnyZv+WkhcQzZR9l0Ow...oup_id: 197, protected: true, created_at: "2017-07-07 15:57:12", updated_at: "2017-07-07 15:57:12">]
the extra elements were: [#<Ci::GroupVariable id: 15, key: "VARIABLE_15", value: nil, encrypted_value: "PbmjyR0H+vZqIJ8VwZDIVg...up_id: 199, protected: false, created_at: "2017-07-07 15:57:12", updated_at: "2017-07-07 15:57:12">]
# ./spec/models/group_spec.rb:482:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:90:in `block (2 levels) in <top (required)>'
Finished in 21 minutes 41 seconds (files took 14.82 seconds to load)
614 examples, 1 failure, 1 pending
Failed examples:
rspec ./spec/models/group_spec.rb:477 # Group#secret_variables_for when group has children returns all variables belong to the group and parent groups