]> source.dussan.org Git - redmine.git/commitdiff
Fixed "column specified more than once" error with SQLServer (#6579).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 24 May 2014 16:09:04 +0000 (16:09 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 24 May 2014 16:09:04 +0000 (16:09 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13153 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/project_nested_set_test.rb

index c603acb3ed157bd8a8a63065e9c02c52df834668..6207f9f77d2ef10c8b1a663ca0647ef6d722a93f 100644 (file)
@@ -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