* All users can now view deleted posts.

* Posts now have an is_banned flag for artist removal requests.  Basic users can not view banned posts but gold and higher can.
* Banning an artist both deletes the post and bans it.
* By default deleted posts are not filtered out of post searches at the sql level.
This commit is contained in:
albert
2013-03-22 09:38:53 -07:00
parent 733fa2dd7b
commit 6c54d89a36
9 changed files with 40 additions and 8 deletions

View File

@@ -37,6 +37,10 @@ class ArtistTest < ActiveSupport::TestCase
@post.reload
end
should "ban the post" do
assert(@post.is_banned?)
end
should "delete the post" do
assert(@post.is_deleted?)
end