Exempt deletions from dupe flag checking
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user