From 0c2e4a72cad67ea429f3855320a8afd913b8c617 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 26 Dec 2011 12:37:24 +0000 Subject: [PATCH] Do assertions on collection, not on association. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8385 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/project_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index ad299b493..389b79d5c 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -280,7 +280,7 @@ class ProjectTest < ActiveSupport::TestCase parent.reload assert_equal 4, parent.children.size - assert_equal parent.children.sort_by(&:name), parent.children + assert_equal parent.children.all.sort_by(&:name), parent.children.all end def test_rebuild_should_sort_children_alphabetically @@ -296,7 +296,7 @@ class ProjectTest < ActiveSupport::TestCase parent.reload assert_equal 4, parent.children.size - assert_equal parent.children.sort_by(&:name), parent.children + assert_equal parent.children.all.sort_by(&:name), parent.children.all end