diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-16 10:40:23 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-16 10:40:23 +0000 |
commit | fb89e8a799d084a590e58854159f67e25f6d460e (patch) | |
tree | ca6992a4f89e10d29c9ec041bb16434a1b21054b | |
parent | f3e2ae6b101d8e04d5073c01bff8cb53fbae2d21 (diff) | |
download | redmine-fb89e8a799d084a590e58854159f67e25f6d460e.tar.gz redmine-fb89e8a799d084a590e58854159f67e25f6d460e.zip |
Use #update! instead of #update_attribute.
git-svn-id: http://svn.redmine.org/redmine/trunk@15678 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/unit/project_test.rb | 4 |
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 |