summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-05 10:47:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-05 10:47:04 +0000
commit9bb056e54d1f4d2941218c502a986386921250e0 (patch)
tree038c86ecc0ad74672803f212513efdefdcb25a13
parentd8b09813304452c3742e0dd893b6670b8215b857 (diff)
downloadredmine-9bb056e54d1f4d2941218c502a986386921250e0.tar.gz
redmine-9bb056e54d1f4d2941218c502a986386921250e0.zip
Array#to_s behaviour changed in ruby 1.9.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9105 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/unit/issue_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 3ef7c7b59..bd54de705 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -60,15 +60,15 @@ class IssueTest < ActiveSupport::TestCase
assert issue.available_custom_fields.include?(field)
# No value for the custom field
assert !issue.save
- assert_equal "Database can't be blank", issue.errors[:base].to_s
+ assert_equal ["Database can't be blank"], issue.errors.full_messages
# Blank value
issue.custom_field_values = { field.id => '' }
assert !issue.save
- assert_equal "Database can't be blank", issue.errors[:base].to_s
+ assert_equal ["Database can't be blank"], issue.errors.full_messages
# Invalid value
issue.custom_field_values = { field.id => 'SQLServer' }
assert !issue.save
- assert_equal "Database is not included in the list", issue.errors[:base].to_s
+ assert_equal ["Database is not included in the list"], issue.errors.full_messages
# Valid value
issue.custom_field_values = { field.id => 'PostgreSQL' }
assert issue.save