Rails3: test: replace deprecated errors.on at test_update_issue_with_required_custom_field_change of unit/time_entry_activity_test.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7612 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-10-07 14:10:05 +00:00
parent e911d46aa8
commit 8dc797e19d

View File

@ -72,7 +72,7 @@ class TimeEntryActivityTest < ActiveSupport::TestCase
# Blanking custom field, save should fail
e.custom_field_values = {field.id => ""}
assert !e.save
assert e.errors.on(:custom_values)
assert e.errors[:custom_values]
# Update custom field to valid value, save should succeed
e.custom_field_values = {field.id => "0"}