* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user