diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-11-23 17:53:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-11-23 17:53:47 +0000 |
commit | cb24cafedca7d69bfd02e9c96b308d0a387504d7 (patch) | |
tree | 237b3fd360d61ece8c5f8a556483c3c995675fe3 /test | |
parent | dc68be983a416f857b4009e8af6175b5587c4749 (diff) | |
download | redmine-cb24cafedca7d69bfd02e9c96b308d0a387504d7.tar.gz redmine-cb24cafedca7d69bfd02e9c96b308d0a387504d7.zip |
Removed duplicated test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10869 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/project_test.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index 72cb73288..30b3f0d6a 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -291,23 +291,6 @@ class ProjectTest < ActiveSupport::TestCase assert_equal parent.children.all.sort_by(&:name), parent.children.all end - def test_rebuild_should_sort_children_alphabetically - ProjectCustomField.delete_all - parent = Project.create!(:name => 'Parent', :identifier => 'parent') - Project.create!(:name => 'Project C', :identifier => 'project-c').move_to_child_of(parent) - Project.create!(:name => 'Project B', :identifier => 'project-b').move_to_child_of(parent) - Project.create!(:name => 'Project D', :identifier => 'project-d').move_to_child_of(parent) - Project.create!(:name => 'Project A', :identifier => 'project-a').move_to_child_of(parent) - - Project.update_all("lft = NULL, rgt = NULL") - Project.rebuild! - - parent.reload - assert_equal 4, parent.children.size - assert_equal parent.children.all.sort_by(&:name), parent.children.all - end - - def test_set_parent_should_update_issue_fixed_version_associations_when_a_fixed_version_is_moved_out_of_the_hierarchy # Parent issue with a hierarchy project's fixed version parent_issue = Issue.find(1) |