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
This commit is contained in:
parent
d8b0981330
commit
9bb056e54d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue