From fb89e8a799d084a590e58854159f67e25f6d460e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 16 Jul 2016 10:40:23 +0000 Subject: Use #update! instead of #update_attribute. git-svn-id: http://svn.redmine.org/redmine/trunk@15678 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/project_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/unit/project_test.rb') diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index c5498a665..b134c67cc 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -224,8 +224,8 @@ class ProjectTest < ActiveSupport::TestCase def test_destroy_should_destroy_subtasks issues = (0..2).to_a.map {Issue.create!(:project_id => 1, :tracker_id => 1, :author_id => 1, :subject => 'test')} - issues[0].update_attribute :parent_issue_id, issues[1].id - issues[2].update_attribute :parent_issue_id, issues[1].id + issues[0].update! :parent_issue_id => issues[1].id + issues[2].update! :parent_issue_id => issues[1].id assert_equal 2, issues[1].children.count assert_nothing_raised do -- cgit v1.2.3