mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-29 19:59:38 +00:00
Use #update! instead of #update_attribute.
git-svn-id: http://svn.redmine.org/redmine/trunk@15678 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f3e2ae6b10
commit
fb89e8a799
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user