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:
parent
9bb056e54d
commit
d4372ab747
|
@ -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"}
|
||||
|
|
Loading…
Reference in New Issue