summaryrefslogtreecommitdiffstats
path: root/test/unit/issue_nested_set_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-01-07 20:26:21 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-01-07 20:26:21 +0000
commitdaef6a8037ab66e1b2716ef42a197fc20228b237 (patch)
treedcb69d13424a48de49b346896f640aba1cc36152 /test/unit/issue_nested_set_test.rb
parent1a851318fdce55a7ffb2290de692282e294987f8 (diff)
downloadredmine-daef6a8037ab66e1b2716ef42a197fc20228b237.tar.gz
redmine-daef6a8037ab66e1b2716ef42a197fc20228b237.zip
Insert children issues to respect same order as ids.
git-svn-id: http://svn.redmine.org/redmine/trunk@13842 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_nested_set_test.rb')
-rw-r--r--test/unit/issue_nested_set_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/issue_nested_set_test.rb b/test/unit/issue_nested_set_test.rb
index d31acdee2..86c859435 100644
--- a/test/unit/issue_nested_set_test.rb
+++ b/test/unit/issue_nested_set_test.rb
@@ -77,8 +77,8 @@ class IssueNestedSetTest < ActiveSupport::TestCase
parent1.reload
parent2.reload
assert_equal [parent1.id, lft, lft + 5], [parent1.root_id, parent1.lft, parent1.rgt]
- assert_equal [parent1.id, lft + 3, lft + 4], [parent2.root_id, parent2.lft, parent2.rgt]
- assert_equal [parent1.id, lft + 1, lft + 2], [child.root_id, child.lft, child.rgt]
+ assert_equal [parent1.id, lft + 1, lft + 2], [parent2.root_id, parent2.lft, parent2.rgt]
+ assert_equal [parent1.id, lft + 3, lft + 4], [child.root_id, child.lft, child.rgt]
end
def test_move_a_child_to_root