Commit a1884ec0 authored by tmaruyama's avatar tmaruyama

Rails3: test: replace deprecated errors.on at...

Rails3: test: replace deprecated errors.on at test_validates_circular_dependency of unit/issue_relation_test.rb

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 4fcc4a3e
......@@ -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 = => Issue.find(3), :issue_to => Issue.find(1), :relation_type => IssueRelation::TYPE_PRECEDES)
assert !
assert_not_nil r.errors.on(:base)
assert_not_nil r.errors[:base]
def test_validates_circular_dependency_on_reverse_relations
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment