Commit 98237c73 authored by Albert Salim's avatar Albert Salim

Fix order dependent array assertion

parent f9cf1264
......@@ -21,7 +21,7 @@ RSpec.describe Analytics::DevopsAdoption::Segments::UpdateService do
it 'persists the segment' do
expect(subject).to be_success
expect(segment.name).to eq('new name')
expect(segment.groups).to eq([group, other_group])
expect(segment.groups).to match_array([group, other_group])
end
context 'when user is not an admin' do
......
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