FEATURE: add a specific flag reason when a post has been hidden

This commit is contained in:
Régis Hanol
2014-04-30 16:58:01 +02:00
parent 4b83a6f0a0
commit 11af466737
4 changed files with 25 additions and 10 deletions

View File

@ -95,7 +95,7 @@ describe PostAction do
post.reload
post.hidden.should be_false
PostAction.hide_post!(post)
PostAction.hide_post!(post, PostActionType.types[:off_topic])
post.reload
post.hidden.should be_true
end