mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
Fix all the errors to get our tests green on Rails 5.1.
This commit is contained in:
@ -75,8 +75,13 @@ describe CookedPostProcessor do
|
||||
end
|
||||
|
||||
it "cleans the reverse index up for the current post" do
|
||||
PostUpload.expects(:delete_all).with(post_id: post.id)
|
||||
cpp.keep_reverse_index_up_to_date
|
||||
|
||||
post_uploads_ids = post.post_uploads.pluck(:id)
|
||||
|
||||
cpp.keep_reverse_index_up_to_date
|
||||
|
||||
expect(post.reload.post_uploads.pluck(:id)).to_not eq(post_uploads_ids)
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user