Commit 312ee207 authored by marutosijp's avatar marutosijp

Rails4: replace deprecated find_all_by_* at IssueTest

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 66664f3e
......@@ -564,8 +564,8 @@ class IssueTest < ActiveSupport::TestCase
issue = Issue.find(1)
assert !admin.member_of?(issue.project)
expected_statuses = [issue.status] +
WorkflowTransition.where(:old_status_id => issue.status_id).
assert_equal expected_statuses, issue.new_statuses_allowed_to(admin)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment