mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: Moderation actions can have their messages removed
This commit is contained in:
@ -306,7 +306,7 @@ describe PostsController do
|
||||
end
|
||||
|
||||
it "calls revise with valid parameters" do
|
||||
PostRevisor.any_instance.expects(:revise!).with(post.user, { raw: 'edited body' , edit_reason: 'typo' })
|
||||
PostRevisor.any_instance.expects(:revise!).with(post.user, { raw: 'edited body' , edit_reason: 'typo' }, anything)
|
||||
xhr :put, :update, update_params
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user