diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-07 12:20:30 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-07 12:20:30 +0000 |
commit | 64c0bdb501679af82ac997f4d29b931463586e28 (patch) | |
tree | 6b6bc2bb9f39803ebb0dca1a0c817f1fcc6bb19a /test/unit/issue_relation_test.rb | |
parent | 4dcb0ada8dba7ff190652e73d3c9bfa86867cfd7 (diff) | |
download | redmine-64c0bdb501679af82ac997f4d29b931463586e28.tar.gz redmine-64c0bdb501679af82ac997f4d29b931463586e28.zip |
Rails3: test: replace deprecated errors.on at test_validates_circular_dependency_on_reverse_relations of unit/issue_relation_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7598 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 6a27863b8..b6bea1df4 100644 --- a/test/unit/issue_relation_test.rb +++ b/test/unit/issue_relation_test.rb @@ -95,6 +95,6 @@ class IssueRelationTest < ActiveSupport::TestCase assert IssueRelation.create!(:issue_from => Issue.find(1), :issue_to => Issue.find(2), :relation_type => IssueRelation::TYPE_BLOCKED) r = IssueRelation.new(:issue_from => Issue.find(2), :issue_to => Issue.find(1), :relation_type => IssueRelation::TYPE_BLOCKED) assert !r.save - assert_not_nil r.errors.on(:base) + assert_not_nil r.errors[:base] end end |