diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-07 15:42:49 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-07 15:42:49 +0000 |
commit | 8dc4992973c4fa4c7f4b20e4315f82bb5689cf88 (patch) | |
tree | 5ac6c68ef993e0d6a71e3a47e33cbcad3cb70b8e /test/unit/issue_test.rb | |
parent | 1d0c93792b71176bdb494c9dd68e253d1e4b50b5 (diff) | |
download | redmine-8dc4992973c4fa4c7f4b20e4315f82bb5689cf88.tar.gz redmine-8dc4992973c4fa4c7f4b20e4315f82bb5689cf88.zip |
Rails4: replace deprecated find_all_by_* at IssueTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12495 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_test.rb')
-rw-r--r-- | test/unit/issue_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb index 0e252cc2e..ab67b4146 100644 --- a/test/unit/issue_test.rb +++ b/test/unit/issue_test.rb @@ -564,8 +564,8 @@ class IssueTest < ActiveSupport::TestCase issue = Issue.find(1) assert !admin.member_of?(issue.project) expected_statuses = [issue.status] + - WorkflowTransition.find_all_by_old_status_id( - issue.status_id).map(&:new_status).uniq.sort + WorkflowTransition.where(:old_status_id => issue.status_id). + all.map(&:new_status).uniq.sort assert_equal expected_statuses, issue.new_statuses_allowed_to(admin) end |