FIX: Brittle, order dependent spec
This commit is contained in:
parent
59529ea54a
commit
9ebb1412d3
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue