summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-26 12:37:24 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-26 12:37:24 +0000
commit0c2e4a72cad67ea429f3855320a8afd913b8c617 (patch)
tree95fc7cb61b559eb30f792c4a7ea94f3fd69c1c2b /test
parentbd42536d31cf2d3d9da413f5932a97fed06a87a3 (diff)
downloadredmine-0c2e4a72cad67ea429f3855320a8afd913b8c617.tar.gz
redmine-0c2e4a72cad67ea429f3855320a8afd913b8c617.zip
Do assertions on collection, not on association.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8385 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/project_test.rb4
1 files 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