Rails4: replace deprecated find_all_by_* at ProjectTest

git-svn-id: http://svn.redmine.org/redmine/trunk@12497 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-07 15:43:21 +00:00
parent d884d09cc2
commit d020a06c5c
1 changed files with 1 additions and 1 deletions

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