From d020a06c5ce02a9ad4ae716b7e1db0a867d7aed7 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 7 Jan 2014 15:43:21 +0000 Subject: [PATCH] Rails4: replace deprecated find_all_by_* at ProjectTest git-svn-id: http://svn.redmine.org/redmine/trunk@12497 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/project_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index 69b2a07e3..440ba96cc 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -585,7 +585,7 @@ class ProjectTest < ActiveSupport::TestCase assert_equal [1,2,3], parent.version_ids.sort assert_equal [4], child.version_ids assert_equal [6], private_child.version_ids - assert_equal [7], Version.find_all_by_sharing('system').collect(&:id) + assert_equal [7], Version.where(:sharing => 'system').all.collect(&:id) assert_equal 6, parent.shared_versions.size parent.shared_versions.each do |version|