]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated find_all_by_* at ProjectTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 7 Jan 2014 15:43:21 +0000 (15:43 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 7 Jan 2014 15:43:21 +0000 (15:43 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12497 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/project_test.rb

index 69b2a07e3f530aa25f444b43bab214863e3a367e..440ba96ccdbc2bd748dd40686eea21ca622a4796 100644 (file)
@@ -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|