From 51d647ecb771c8f1ea366ddf5fadfc35fe465e8a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 7 Oct 2011 12:23:37 +0000 Subject: [PATCH] Rails3: test: replace deprecated errors.on at test_should_not_set_a_disabled_tracker of unit/issue_test.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7604 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/issue_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb index 5e40f18c1..1299b54bb 100644 --- a/test/unit/issue_test.rb +++ b/test/unit/issue_test.rb @@ -289,7 +289,7 @@ class IssueTest < ActiveSupport::TestCase issue.tracker_id = 2 issue.subject = 'New subject' assert !issue.save - assert_not_nil issue.errors.on(:tracker_id) + assert_not_nil issue.errors[:tracker_id] end def test_category_based_assignment -- 2.39.5