diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-07 12:19:40 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-07 12:19:40 +0000 |
commit | 4dcb0ada8dba7ff190652e73d3c9bfa86867cfd7 (patch) | |
tree | ea476481e93395b8e6e814e9f1b4e173ba7bc3e9 /test/unit/issue_relation_test.rb | |
parent | ac19421a261fbc59d627a591a0d4dd6c02fec2fd (diff) | |
download | redmine-4dcb0ada8dba7ff190652e73d3c9bfa86867cfd7.tar.gz redmine-4dcb0ada8dba7ff190652e73d3c9bfa86867cfd7.zip |
Rails3: test: replace deprecated errors.on at test_validates_circular_dependency of unit/issue_relation_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7597 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_relation_test.rb')
-rw-r--r-- | test/unit/issue_relation_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/issue_relation_test.rb b/test/unit/issue_relation_test.rb index eaadd81c7..6a27863b8 100644 --- a/test/unit/issue_relation_test.rb +++ b/test/unit/issue_relation_test.rb @@ -86,7 +86,7 @@ class IssueRelationTest < ActiveSupport::TestCase assert IssueRelation.create!(:issue_from => Issue.find(2), :issue_to => Issue.find(3), :relation_type => IssueRelation::TYPE_PRECEDES) r = IssueRelation.new(:issue_from => Issue.find(3), :issue_to => Issue.find(1), :relation_type => IssueRelation::TYPE_PRECEDES) assert !r.save - assert_not_nil r.errors.on(:base) + assert_not_nil r.errors[:base] end def test_validates_circular_dependency_on_reverse_relations |