diff options
Diffstat (limited to 'spec/services/issuable/process_assignees_spec.rb')
-rw-r--r-- | spec/services/issuable/process_assignees_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/services/issuable/process_assignees_spec.rb b/spec/services/issuable/process_assignees_spec.rb index 2c8d4c5e11d..2751267c08b 100644 --- a/spec/services/issuable/process_assignees_spec.rb +++ b/spec/services/issuable/process_assignees_spec.rb @@ -5,7 +5,7 @@ require 'spec_helper' RSpec.describe Issuable::ProcessAssignees, feature_category: :team_planning do describe '#execute' do it 'returns assignee_ids when add_assignee_ids and remove_assignee_ids are not specified' do - process = Issuable::ProcessAssignees.new(assignee_ids: %w(5 7 9), + process = described_class.new(assignee_ids: %w(5 7 9), add_assignee_ids: nil, remove_assignee_ids: nil, existing_assignee_ids: %w(1 3 9), @@ -16,7 +16,7 @@ RSpec.describe Issuable::ProcessAssignees, feature_category: :team_planning do end it 'combines other ids when assignee_ids is nil' do - process = Issuable::ProcessAssignees.new(assignee_ids: nil, + process = described_class.new(assignee_ids: nil, add_assignee_ids: nil, remove_assignee_ids: nil, existing_assignee_ids: %w(1 3 11), @@ -27,7 +27,7 @@ RSpec.describe Issuable::ProcessAssignees, feature_category: :team_planning do end it 'combines other ids when both add_assignee_ids and remove_assignee_ids are not empty' do - process = Issuable::ProcessAssignees.new(assignee_ids: %w(5 7 9), + process = described_class.new(assignee_ids: %w(5 7 9), add_assignee_ids: %w(2 4 6), remove_assignee_ids: %w(4 7 11), existing_assignee_ids: %w(1 3 11), @@ -38,7 +38,7 @@ RSpec.describe Issuable::ProcessAssignees, feature_category: :team_planning do end it 'combines other ids when remove_assignee_ids is not empty' do - process = Issuable::ProcessAssignees.new(assignee_ids: %w(5 7 9), + process = described_class.new(assignee_ids: %w(5 7 9), add_assignee_ids: nil, remove_assignee_ids: %w(4 7 11), existing_assignee_ids: %w(1 3 11), @@ -49,7 +49,7 @@ RSpec.describe Issuable::ProcessAssignees, feature_category: :team_planning do end it 'combines other ids when add_assignee_ids is not empty' do - process = Issuable::ProcessAssignees.new(assignee_ids: %w(5 7 9), + process = described_class.new(assignee_ids: %w(5 7 9), add_assignee_ids: %w(2 4 6), remove_assignee_ids: nil, existing_assignee_ids: %w(1 3 11), @@ -60,7 +60,7 @@ RSpec.describe Issuable::ProcessAssignees, feature_category: :team_planning do end it 'combines ids when existing_assignee_ids and extra_assignee_ids are omitted' do - process = Issuable::ProcessAssignees.new(assignee_ids: %w(5 7 9), + process = described_class.new(assignee_ids: %w(5 7 9), add_assignee_ids: %w(2 4 6), remove_assignee_ids: %w(4 7 11)) result = process.execute @@ -69,7 +69,7 @@ RSpec.describe Issuable::ProcessAssignees, feature_category: :team_planning do end it 'handles mixed string and integer arrays' do - process = Issuable::ProcessAssignees.new(assignee_ids: %w(5 7 9), + process = described_class.new(assignee_ids: %w(5 7 9), add_assignee_ids: [2, 4, 6], remove_assignee_ids: %w(4 7 11), existing_assignee_ids: [1, 3, 11], |