mirror of
https://github.com/redmine/redmine.git
synced 2024-08-27 05:58:46 +02:00
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:
parent
e911d46aa8
commit
8dc797e19d
@ -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"}
|
||||
|
Loading…
Reference in New Issue
Block a user