##// END OF EJS Templates
Removed duplicated test....
Jean-Philippe Lang -
r10642:cb24cafedca7
parent child
Show More
@@ -291,23 +291,6 class ProjectTest < ActiveSupport::TestCase
291 assert_equal parent.children.all.sort_by(&:name), parent.children.all
291 assert_equal parent.children.all.sort_by(&:name), parent.children.all
292 end
292 end
293
293
294 def test_rebuild_should_sort_children_alphabetically
295 ProjectCustomField.delete_all
296 parent = Project.create!(:name => 'Parent', :identifier => 'parent')
297 Project.create!(:name => 'Project C', :identifier => 'project-c').move_to_child_of(parent)
298 Project.create!(:name => 'Project B', :identifier => 'project-b').move_to_child_of(parent)
299 Project.create!(:name => 'Project D', :identifier => 'project-d').move_to_child_of(parent)
300 Project.create!(:name => 'Project A', :identifier => 'project-a').move_to_child_of(parent)
301
302 Project.update_all("lft = NULL, rgt = NULL")
303 Project.rebuild!
304
305 parent.reload
306 assert_equal 4, parent.children.size
307 assert_equal parent.children.all.sort_by(&:name), parent.children.all
308 end
309
310
311 def test_set_parent_should_update_issue_fixed_version_associations_when_a_fixed_version_is_moved_out_of_the_hierarchy
294 def test_set_parent_should_update_issue_fixed_version_associations_when_a_fixed_version_is_moved_out_of_the_hierarchy
312 # Parent issue with a hierarchy project's fixed version
295 # Parent issue with a hierarchy project's fixed version
313 parent_issue = Issue.find(1)
296 parent_issue = Issue.find(1)
General Comments 0
You need to be logged in to leave comments. Login now