def rolled_up_statuses
issue_status_ids = WorkflowTransition.
where(:tracker_id => rolled_up_trackers.map(&:id)).
+ where('old_status_id <> new_status_id').
distinct.
pluck(:old_status_id, :new_status_id).
flatten.
WorkflowTransition.create(:role_id => 1, :tracker_id => 1, :old_status_id => 1, :new_status_id => 4)
WorkflowTransition.create(:role_id => 1, :tracker_id => 1, :old_status_id => 2, :new_status_id => 5)
WorkflowTransition.create(:role_id => 1, :tracker_id => 2, :old_status_id => 1, :new_status_id => 6)
+ WorkflowTransition.create(:role_id => 1, :tracker_id => 2, :old_status_id => 3, :new_status_id => 3)
+
with_settings :display_subprojects_issues => '0' do
get(:issue_report_details, :params => {:id => 1, :detail => 'tracker'})
end
WorkflowTransition.create(:role_id => 1, :tracker_id => 1, :old_status_id => 1, :new_status_id => 4)
WorkflowTransition.create(:role_id => 1, :tracker_id => 1, :old_status_id => 2, :new_status_id => 3)
WorkflowTransition.create(:role_id => 1, :tracker_id => 2, :old_status_id => 1, :new_status_id => 3)
+ WorkflowTransition.create(:role_id => 1, :tracker_id => 1, :old_status_id => 5, :new_status_id => 5)
+ WorkflowTransition.create(:role_id => 1, :tracker_id => 2, :old_status_id => 5, :new_status_id => 5)
assert_kind_of IssueStatus, project.rolled_up_statuses.first
assert_equal IssueStatus.find(1), project.rolled_up_statuses.first