mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 19:00:32 -06:00
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
Block a user