Do assertions on collection, not on association.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8385 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-12-26 12:37:24 +00:00
parent bd42536d31
commit 0c2e4a72ca
1 changed files with 2 additions and 2 deletions

View File

@ -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