FIX: Moderation actions can have their messages removed

This commit is contained in:
Robin Ward
2015-07-28 16:58:56 -04:00
parent 510813769f
commit 5f45e5361f
6 changed files with 20 additions and 13 deletions

View File

@ -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