mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +08:00
FIX: Brittle, order dependent spec
This commit is contained in:
@ -237,7 +237,7 @@ RSpec.describe UsersController do
|
|||||||
groups = JSON.parse(response.body)["groups"]
|
groups = JSON.parse(response.body)["groups"]
|
||||||
|
|
||||||
expect(groups.map { |group| group['name'] })
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user