summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-05-24 16:09:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-05-24 16:09:04 +0000
commit96baa905bf5b79b98321f4436e6ea9497537d46f (patch)
tree7511a438b3b14e4834903d3246a777e43e1b6b12 /test
parent1a74bf648545b912919312452ef77d6fbe9648ed (diff)
downloadredmine-96baa905bf5b79b98321f4436e6ea9497537d46f.tar.gz
redmine-96baa905bf5b79b98321f4436e6ea9497537d46f.zip
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
Diffstat (limited to 'test')
-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