summaryrefslogtreecommitdiffstats
path: root/test/unit/project_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-09 05:09:10 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-09 05:09:10 +0000
commit205e727565be7c2bf1279052bc00c4a8c1d4c83e (patch)
treebb3d855bd3335a292bcf2ac316a3c59ee5d72418 /test/unit/project_test.rb
parent56a40b35793af0ad57d4077bfeed8a2539dba4cc (diff)
downloadredmine-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.rb2
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