Exempt deletions from dupe flag checking

This commit is contained in:
Toks
2014-10-31 20:01:42 -04:00
parent e6c4cd6c6d
commit 095d02414c
4 changed files with 13 additions and 5 deletions

View File

@@ -20,6 +20,13 @@ module Moderator
@post.reload
assert(@post.is_deleted?)
end
should "work even if the deleter has flagged the post previously" do
PostFlag.create(:post => @post, :reason => "aaa", :is_resolved => false)
post :delete, {:id => @post.id, :reason => "xxx", :format => "js", :commit => "Delete"}, {:user_id => @admin.id}
@post.reload
assert(@post.is_deleted?)
end
end
context "undelete action" do