mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 00:20:54 +08:00
FIX: use allowlist and blocklist terminology (#10209)
This is a PR of the renaming whitelist to allowlist and blacklist to the blocklist.
This commit is contained in:

committed by
GitHub

parent
5077cf52fd
commit
e0d9232259
@ -235,7 +235,7 @@ describe HasCustomFields do
|
||||
|
||||
it "supports bulk retrieval with a list of ids" do
|
||||
item1 = CustomFieldsTestItem.new
|
||||
item1.custom_fields = { "a" => ["b", "c", "d"], 'not_whitelisted' => 'secret' }
|
||||
item1.custom_fields = { "a" => ["b", "c", "d"], 'not_allowlisted' => 'secret' }
|
||||
item1.save
|
||||
|
||||
item2 = CustomFieldsTestItem.new
|
||||
@ -245,7 +245,7 @@ describe HasCustomFields do
|
||||
fields = CustomFieldsTestItem.custom_fields_for_ids([item1.id, item2.id], ['a', 'e'])
|
||||
expect(fields).to be_present
|
||||
expect(fields[item1.id]['a']).to match_array(['b', 'c', 'd'])
|
||||
expect(fields[item1.id]['not_whitelisted']).to be_blank
|
||||
expect(fields[item1.id]['not_allowlisted']).to be_blank
|
||||
expect(fields[item2.id]['e']).to eq('hallo')
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user