summaryrefslogtreecommitdiffstats
path: root/test/unit/project_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/project_test.rb')
-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