summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-07-23 23:24:01 +0200
committerHans de Graaff <graaff@gentoo.org>2019-07-23 23:24:01 +0200
commitd148f7d91aa4ef4f37c4acda4a71ba72f872ecd7 (patch)
treece639aede2d1a5f2c4f269bf7ad7d6eed27e001a /test/unit/comment_test.rb
parentRemove obsolete performance test (diff)
downloadglsamaker-d148f7d91aa4ef4f37c4acda4a71ba72f872ecd7.tar.gz
glsamaker-d148f7d91aa4ef4f37c4acda4a71ba72f872ecd7.tar.bz2
glsamaker-d148f7d91aa4ef4f37c4acda4a71ba72f872ecd7.zip
Fix tests to account for changes in the code
It looks like changes were added that where not accounted for in the tests, possibly the tests have not been updated for some time. Update all failing tests to account for the current code. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'test/unit/comment_test.rb')
-rw-r--r--test/unit/comment_test.rb6
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