Skip to content

Commit

Permalink
Fix Rubocop offenses for files in spec/workflows (#20284)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandondorner authored Dec 21, 2023
1 parent cbdf016 commit ccf61a8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 19 additions & 2 deletions spec/workflows/docket_switch_task_handler_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,25 @@
let(:granted_request_issue_ids) { [] }
let!(:old_docket_stream_tasks) do
[
create(:translation_task, appeal: old_docket_stream, parent: create(:translation_task, appeal: old_docket_stream, parent: old_docket_stream.root_task, assigned_to: translation_organization)),
create(:foia_task, appeal: old_docket_stream, parent: create(:translation_task, parent: old_docket_stream.root_task, assigned_to: other_organization))
create(
:translation_task,
appeal: old_docket_stream,
parent: create(
:translation_task,
appeal: old_docket_stream,
parent: old_docket_stream.root_task,
assigned_to: translation_organization
)
),
create(
:foia_task,
appeal: old_docket_stream,
parent: create(
:translation_task,
parent: old_docket_stream.root_task,
assigned_to: other_organization
)
)
]
end
let!(:translation_organization) { Translation.singleton }
Expand Down
2 changes: 2 additions & 0 deletions spec/workflows/post_decision_motion_updater_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ def vacate_stream
Appeal.find_by(stream_docket_number: appeal.docket_number, stream_type: Constants.AMA_STREAM_TYPES.vacate)
end

# rubocop:disable Metrics/AbcSize
def verify_vacate_stream
expect(vacate_stream).to_not be_nil
expect(vacate_stream.claimant.participant_id).to eq(appeal.claimant.participant_id)
Expand All @@ -253,6 +254,7 @@ def verify_vacate_stream
motion = PostDecisionMotion.first
expect(motion.appeal).to eq(vacate_stream)
end
# rubocop:enable Metrics/AbcSize

def verify_decision_issues_created
motion = PostDecisionMotion.first
Expand Down

0 comments on commit ccf61a8

Please sign in to comment.