summaryrefslogtreecommitdiffstats
path: root/test/unit/project_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-07 15:43:21 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-07 15:43:21 +0000
commitd020a06c5ce02a9ad4ae716b7e1db0a867d7aed7 (patch)
treed87293e085a525a6ef0c4b8d2f7fffe6cf8a4c7d /test/unit/project_test.rb
parentd884d09cc252cc1cd8f6764678cd1b1229b168f8 (diff)
downloadredmine-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.rb2
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|