Array#to_s behaviour changed in ruby 1.9.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9106 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-03-05 10:49:05 +00:00
parent 9bb056e54d
commit d4372ab747
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ class TimeEntryActivityTest < ActiveSupport::TestCase
e = TimeEntryActivity.new(:name => 'Custom Data') e = TimeEntryActivity.new(:name => 'Custom Data')
assert !e.save assert !e.save
assert_equal "Billable can't be blank", e.errors[:base].to_s assert_equal ["Billable can't be blank"], e.errors.full_messages
end end
def test_create_with_required_custom_field_should_succeed def test_create_with_required_custom_field_should_succeed
@ -76,7 +76,7 @@ class TimeEntryActivityTest < ActiveSupport::TestCase
# Blanking custom field, save should fail # Blanking custom field, save should fail
e.custom_field_values = {field.id => ""} e.custom_field_values = {field.id => ""}
assert !e.save assert !e.save
assert_equal "Billable can't be blank", e.errors[:base].to_s assert_equal ["Billable can't be blank"], e.errors.full_messages
# Update custom field to valid value, save should succeed # Update custom field to valid value, save should succeed
e.custom_field_values = {field.id => "0"} e.custom_field_values = {field.id => "0"}