mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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
@@ -192,7 +192,7 @@ describe TopicEmbed do
|
||||
response = nil
|
||||
|
||||
before do
|
||||
SiteSetting.embed_classname_whitelist = 'emoji, foo'
|
||||
SiteSetting.allowed_embed_classnames = 'emoji, foo'
|
||||
file.stubs(:read).returns contents
|
||||
TopicEmbed.stubs(:open).returns file
|
||||
stub_request(:head, url)
|
||||
@@ -252,7 +252,7 @@ describe TopicEmbed do
|
||||
response = nil
|
||||
|
||||
before(:each) do
|
||||
SiteSetting.embed_classname_whitelist = ''
|
||||
SiteSetting.allowed_embed_classnames = ''
|
||||
file.stubs(:read).returns contents
|
||||
TopicEmbed.stubs(:open).returns file
|
||||
stub_request(:head, url)
|
||||
|
||||
Reference in New Issue
Block a user