mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: ensure the group 'everyone' is never shown when using a different locale
This commit is contained in:
@ -19,7 +19,9 @@ describe Admin::GroupsController do
|
||||
|
||||
xhr :get, :index
|
||||
expect(response.status).to eq(200)
|
||||
expect(::JSON.parse(response.body).keep_if {|r| r["id"] == group.id }).to eq([{
|
||||
json = ::JSON.parse(response.body)
|
||||
expect(json.select { |r| r["id"] == Group::AUTO_GROUPS[:everyone] }).to be_empty
|
||||
expect(json.select { |r| r["id"] == group.id }).to eq([{
|
||||
"id"=>group.id,
|
||||
"name"=>group.name,
|
||||
"user_count"=>1,
|
||||
@ -135,6 +137,4 @@ describe Admin::GroupsController do
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user