mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Don’t translate TrustLevel name when generating links (#13588)
We want to put the name of the trust level in to generated URLs, not the human-readable form. i.e.: `/admin/users/list/newuser` rather than: `/admin/users/list/new user`
This commit is contained in:
@@ -352,6 +352,8 @@ describe Report do
|
||||
expect(report.data.find { |d| d[:x] == TrustLevel[0] }[:y]).to eq 3
|
||||
expect(report.data.find { |d| d[:x] == TrustLevel[2] }[:y]).to eq 2
|
||||
expect(report.data.find { |d| d[:x] == TrustLevel[4] }[:y]).to eq 1
|
||||
|
||||
expect(report.data.find { |d| d[:x] == TrustLevel[0] }[:url]).to eq '/admin/users/list/newuser'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user