fixed tests

This commit is contained in:
albert
2011-10-16 01:40:42 -04:00
parent d2f2203c33
commit a7267cf00b
12 changed files with 141 additions and 30 deletions

View File

@@ -28,7 +28,7 @@ class PostAppealTest < ActiveSupport::TestCase
@post_appeal = PostAppeal.create(:post => @post, :reason => "aaa")
end
assert_equal(["Creator has already appealed this post"], @post_appeal.errors.full_messages)
assert_equal(["You have already appealed this post"], @post_appeal.errors.full_messages)
end
should "not be able to appeal more than 5 posts in 24 hours" do
@@ -37,7 +37,7 @@ class PostAppealTest < ActiveSupport::TestCase
assert_difference("PostAppeal.count", 0) do
@post_appeal.save
end
assert_equal(["Creator can appeal 5 posts a day"], @post_appeal.errors.full_messages)
assert_equal(["You can appeal 5 posts a day"], @post_appeal.errors.full_messages)
end
should "not be able to appeal an active post" do