mirror of
https://github.com/redmine/redmine.git
synced 2026-03-04 11:31:31 +01: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user