mirror of
https://github.com/redmine/redmine.git
synced 2026-03-06 20:41:27 +01:00
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:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user