DEV: New option to always destroy posts. (#11898)

This commit is contained in:
Roman Rizzi
2021-02-01 18:57:31 -03:00
committed by GitHub
parent 4b3d34d3d4
commit e040de0c2c
4 changed files with 44 additions and 29 deletions

View File

@@ -290,7 +290,7 @@ describe UserDestroyer do
before do
@post = Fabricate(:post_with_external_links, user: user)
TopicLink.extract_from(@post)
TopicLink.any_instance.stubs(:internal).returns(true)
TopicLink.where(user: user).update_all(internal: true)
end
it "doesn't add ScreenedUrl records" do