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:
parent
bd42536d31
commit
0c2e4a72ca
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue