Patch #24281 » 0001-amend-test-case-to-show-that-statuses-of-non-relevan.patch
test/functional/workflows_controller_test.rb | ||
---|---|---|
43 | 43 |
WorkflowTransition.create!(:role_id => 1, :tracker_id => 1, :old_status_id => 2, :new_status_id => 3) |
44 | 44 |
WorkflowTransition.create!(:role_id => 2, :tracker_id => 1, :old_status_id => 3, :new_status_id => 5) |
45 | 45 | |
46 |
reporter = Role.find(3) |
|
47 |
reporter.remove_permission! :edit_issues |
|
48 |
reporter.remove_permission! :add_issues |
|
49 |
assert !reporter.consider_workflow? |
|
50 |
WorkflowTransition.create!(:role_id => 3, :tracker_id => 1, :old_status_id => 1, :new_status_id => 2) |
|
51 | ||
46 | 52 |
get :edit, :params => {:role_id => 2, :tracker_id => 1} |
47 | 53 |
assert_response :success |
48 | 54 |