summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit/project_test.rb4
1 files changed, 2 insertions, 2 deletions
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