##// END OF EJS Templates
Fixed "column specified more than once" error with SQLServer (#6579)....
Jean-Philippe Lang -
r12878:96baa905bf5b
parent child
Show More
@@ -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.order('lft').map(&:name), "Project #{project.name}'s children were not properly sorted"
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