diff options
Diffstat (limited to 'test/unit/comment_test.rb')
-rw-r--r-- | test/unit/comment_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/comment_test.rb b/test/unit/comment_test.rb index f3e02dd..6e0de8b 100644 --- a/test/unit/comment_test.rb +++ b/test/unit/comment_test.rb @@ -12,7 +12,7 @@ class CommentTest < ActiveSupport::TestCase c.save assert c.errors.any? - assert_equal ["You may not approve or reject drafts"], c.errors[:rating] + assert_includes c.errors[:rating], "You may not approve or reject drafts" end test "padawans should not be able to make rejections" do @@ -24,7 +24,7 @@ class CommentTest < ActiveSupport::TestCase c.save assert c.errors.any? - assert_equal ["You may not approve or reject drafts"], c.errors[:rating] + assert_includes c.errors[:rating], "You may not approve or reject drafts" end test "advisory owners should not be able to approve their own drafts" do @@ -51,4 +51,4 @@ class CommentTest < ActiveSupport::TestCase assert c.errors.any? assert_equal ["You have already approved or rejected this draft"], c.errors[:rating] end -end
\ No newline at end of file +end |