diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-05 10:49:05 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-05 10:49:05 +0000 |
commit | d4372ab7474832104f5187ca6455f0453cd7a1be (patch) | |
tree | d3a4309e45724cd81245546d1476c55e775e5a27 | |
parent | 9bb056e54d1f4d2941218c502a986386921250e0 (diff) | |
download | redmine-d4372ab7474832104f5187ca6455f0453cd7a1be.tar.gz redmine-d4372ab7474832104f5187ca6455f0453cd7a1be.zip |
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
-rw-r--r-- | test/unit/time_entry_activity_test.rb | 4 |
1 files 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"} |