Commit 68e090c0 authored by tmaruyama's avatar tmaruyama
Browse files

code layout clean up...

code layout clean up test_new_statuses_allowed_to_should_return_all_transitions_for_admin of unit issue test

git-svn-id: https://svn.redmine.org/redmine/trunk@10644 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 86d7dd18
......@@ -450,8 +450,9 @@ class IssueTest < ActiveSupport::TestCase
admin = User.find(1)
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
expected_statuses = [issue.status] +
WorkflowTransition.find_all_by_old_status_id(
issue.status_id).map(&:new_status).uniq.sort
assert_equal expected_statuses, issue.new_statuses_allowed_to(admin)
end
......
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