Commit 671982d6 authored by David Fernandez's avatar David Fernandez

Merge branch 'fix-sorting-ip-restriction-ranges-group-spec' into 'master'

Fix ip_restriction_ranges sorting in EE group spec

See merge request gitlab-org/gitlab!57576
parents 65f3749c aac0674c
......@@ -460,7 +460,7 @@ RSpec.describe Group do
end
it 'returns a comma separated string of ranges of its ip_restriction records' do
expect(group.ip_restriction_ranges).to eq('192.168.0.0/24,10.0.0.0/8')
expect(group.ip_restriction_ranges.split(',')).to contain_exactly(*ranges)
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment