mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 08:58:09 +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
@ -156,8 +156,8 @@ describe PostAnalyzer do
|
||||
expect(post_analyzer.image_count).to eq(0)
|
||||
end
|
||||
|
||||
it "doesn't count whitelisted images" do
|
||||
Post.stubs(:white_listed_image_classes).returns(["classy"])
|
||||
it "doesn't count allowlisted images" do
|
||||
Post.stubs(:allowed_image_classes).returns(["classy"])
|
||||
PrettyText.stubs(:cook).returns(raw_post_with_two_classy_images)
|
||||
post_analyzer = PostAnalyzer.new(raw_post_with_two_classy_images, default_topic_id)
|
||||
expect(post_analyzer.image_count).to eq(0)
|
||||
|
Reference in New Issue
Block a user