1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-22 16:31:12 +00:00

Fixed "column specified more than once" error with SQLServer (#6579).

git-svn-id: http://svn.redmine.org/redmine/trunk@13153 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-05-24 16:09:04 +00:00
parent 1a74bf6485
commit 96baa905bf

View 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