From d4372ab7474832104f5187ca6455f0453cd7a1be Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 5 Mar 2012 10:49:05 +0000 Subject: 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 --- test/unit/time_entry_activity_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/time_entry_activity_test.rb b/test/unit/time_entry_activity_test.rb index bbdc77895..ec058bdd5 100644 --- a/test/unit/time_entry_activity_test.rb +++ b/test/unit/time_entry_activity_test.rb @@ -52,7 +52,7 @@ class TimeEntryActivityTest < ActiveSupport::TestCase e = TimeEntryActivity.new(:name => 'Custom Data') 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 def test_create_with_required_custom_field_should_succeed @@ -76,7 +76,7 @@ class TimeEntryActivityTest < ActiveSupport::TestCase # Blanking custom field, save should fail e.custom_field_values = {field.id => ""} 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 e.custom_field_values = {field.id => "0"} -- cgit v1.2.3