@@ -432,13 +432,9 class IssueTest < ActiveSupport::TestCase | |||||
432 | end |
|
432 | end | |
433 |
|
433 | |||
434 | def test_should_not_close_duplicated_issue |
|
434 | def test_should_not_close_duplicated_issue | |
435 | # Create 3 issues |
|
435 | project = Project.find(1) | |
436 | issue1 = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 1, |
|
436 | issue1 = Issue.generate_for_project!(project) | |
437 | :status_id => 1, :priority => IssuePriority.all.first, |
|
437 | issue2 = Issue.generate_for_project!(project) | |
438 | :subject => 'Duplicates test', :description => 'Duplicates test') |
|
|||
439 | assert issue1.save |
|
|||
440 | issue2 = issue1.clone |
|
|||
441 | assert issue2.save |
|
|||
442 |
|
438 | |||
443 | # 2 is a dupe of 1 |
|
439 | # 2 is a dupe of 1 | |
444 | IssueRelation.create(:issue_from => issue2, :issue_to => issue1, :relation_type => IssueRelation::TYPE_DUPLICATES) |
|
440 | IssueRelation.create(:issue_from => issue2, :issue_to => issue1, :relation_type => IssueRelation::TYPE_DUPLICATES) |
General Comments 0
You need to be logged in to leave comments.
Login now