1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# frozen_string_literal: true
require 'spec_helper'
require_migration!
RSpec.describe AddLinkedItemsWidgetToTicketWorkItemType, :migration, feature_category: :portfolio_management do
it_behaves_like 'migration that adds a widget to a work item type' do
let(:target_type_enum_value) { described_class::TICKET_ENUM_VALUE }
let(:target_type) { :ticket }
let(:additional_types) { { ticket: 8 } }
let(:widgets_for_type) do
{
'Assignees' => 0,
'Description' => 1,
'Hierarchy' => 2,
'Labels' => 3,
'Notes' => 5,
'Iteration' => 9,
'Milestone' => 4,
'Weight' => 8,
'Current user todos' => 15,
'Start and due date' => 6,
'Health status' => 7,
'Notifications' => 14,
'Award emoji' => 16
}.freeze
end
end
end
|