diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-07 15:43:21 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-07 15:43:21 +0000 |
commit | d020a06c5ce02a9ad4ae716b7e1db0a867d7aed7 (patch) | |
tree | d87293e085a525a6ef0c4b8d2f7fffe6cf8a4c7d /test/unit/project_test.rb | |
parent | d884d09cc252cc1cd8f6764678cd1b1229b168f8 (diff) | |
download | redmine-d020a06c5ce02a9ad4ae716b7e1db0a867d7aed7.tar.gz redmine-d020a06c5ce02a9ad4ae716b7e1db0a867d7aed7.zip |
Rails4: replace deprecated find_all_by_* at ProjectTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12497 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/project_test.rb')
-rw-r--r-- | test/unit/project_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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| |