This commit is contained in:
r888888888
2014-03-07 16:42:20 -08:00
parent 08b9b2771f
commit 0724f6ca06
5 changed files with 42 additions and 2 deletions

View File

@@ -37,6 +37,16 @@ class ArtistTest < ActiveSupport::TestCase
@post.reload
end
should "allow unbanning" do
assert_difference("TagImplication.count", -1) do
@artist.unban!
end
@post.reload
@artist.reload
assert(!@artist.is_banned?, "artist should not be banned")
assert(!@post.is_banned?, "post should not be banned")
end
should "ban the post" do
assert(@post.is_banned?)
end