summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/unit/project_nested_set_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/project_nested_set_test.rb b/test/unit/project_nested_set_test.rb
index c603acb3e..6207f9f77 100644
--- a/test/unit/project_nested_set_test.rb
+++ b/test/unit/project_nested_set_test.rb
@@ -176,7 +176,7 @@ class ProjectNestedSetTest < ActiveSupport::TestCase
projects.each do |project|
if project.children.any?
# sibling projects sorted alphabetically
- assert_equal project.children.map(&:name).sort, project.children.order('lft').map(&:name), "Project #{project.name}'s children were not properly sorted"
+ assert_equal project.children.map(&:name).sort, project.children.sort_by(&:lft).map(&:name), "Project #{project.name}'s children were not properly sorted"
end
end
end