diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-09 05:09:10 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-09 05:09:10 +0000 |
commit | 205e727565be7c2bf1279052bc00c4a8c1d4c83e (patch) | |
tree | bb3d855bd3335a292bcf2ac316a3c59ee5d72418 /test/unit/project_test.rb | |
parent | 56a40b35793af0ad57d4077bfeed8a2539dba4cc (diff) | |
download | redmine-205e727565be7c2bf1279052bc00c4a8c1d4c83e.tar.gz redmine-205e727565be7c2bf1279052bc00c4a8c1d4c83e.zip |
Rails4: replace deprecated find_all_by_* at ProjectTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12559 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 85dbb317d..db1fa2f8b 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -224,7 +224,7 @@ class ProjectTest < ActiveSupport::TestCase assert_nothing_raised do Project.find(1).destroy end - assert Issue.find_all_by_id(issues.map(&:id)).empty? + assert_equal 0, Issue.where(:id => issues.map(&:id)).count end def test_destroying_root_projects_should_clear_data |