##// END OF EJS Templates
Rails3: test: replace deprecated errors.on at test_moving_an_issue_to_a_descendant_should_not_validate of unit/issue_nested_set_test.rb...
Toshi MARUYAMA -
r7497:6ebb5e834ceb
parent child
Show More
@@ -179,7 +179,7 class IssueNestedSetTest < ActiveSupport::TestCase
179 child.reload
179 child.reload
180 child.parent_issue_id = grandchild.id
180 child.parent_issue_id = grandchild.id
181 assert !child.save
181 assert !child.save
182 assert_not_nil child.errors.on(:parent_issue_id)
182 assert_not_nil child.errors[:parent_issue_id]
183 end
183 end
184
184
185 def test_moving_an_issue_should_keep_valid_relations_only
185 def test_moving_an_issue_should_keep_valid_relations_only
General Comments 0
You need to be logged in to leave comments. Login now