Commit aac0674c authored by Arturo Herrero's avatar Arturo Herrero

Fix ip_restriction_ranges sorting in specs

parent 4cc5f3f1
...@@ -460,7 +460,7 @@ RSpec.describe Group do ...@@ -460,7 +460,7 @@ RSpec.describe Group do
end end
it 'returns a comma separated string of ranges of its ip_restriction records' do 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 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