FIX: Brittle, order dependent spec

This commit is contained in:
Robin Ward 2017-11-04 09:30:17 -04:00
parent 59529ea54a
commit 9ebb1412d3
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ RSpec.describe UsersController do
groups = JSON.parse(response.body)["groups"]
expect(groups.map { |group| group['name'] })
.to eq([mentionable_group.name, mentionable_group_2.name])
.to contain_exactly(mentionable_group.name, mentionable_group_2.name)
end
end