@@ -176,7 +176,7 class ProjectNestedSetTest < ActiveSupport::TestCase | |||||
176 | projects.each do |project| |
|
176 | projects.each do |project| | |
177 | if project.children.any? |
|
177 | if project.children.any? | |
178 | # sibling projects sorted alphabetically |
|
178 | # sibling projects sorted alphabetically | |
179 |
assert_equal project.children.map(&:name).sort, project.children. |
|
179 | assert_equal project.children.map(&:name).sort, project.children.sort_by(&:lft).map(&:name), "Project #{project.name}'s children were not properly sorted" | |
180 | end |
|
180 | end | |
181 | end |
|
181 | end | |
182 | end |
|
182 | end |
General Comments 0
You need to be logged in to leave comments.
Login now