@@ -450,8 +450,9 class IssueTest < ActiveSupport::TestCase | |||
|
450 | 450 | admin = User.find(1) |
|
451 | 451 | issue = Issue.find(1) |
|
452 | 452 | assert !admin.member_of?(issue.project) |
|
453 | expected_statuses = [issue.status] + WorkflowTransition.find_all_by_old_status_id(issue.status_id).map(&:new_status).uniq.sort | |
|
454 | ||
|
453 | expected_statuses = [issue.status] + | |
|
454 | WorkflowTransition.find_all_by_old_status_id( | |
|
455 | issue.status_id).map(&:new_status).uniq.sort | |
|
455 | 456 | assert_equal expected_statuses, issue.new_statuses_allowed_to(admin) |
|
456 | 457 | end |
|
457 | 458 |
General Comments 0
You need to be logged in to leave comments.
Login now