Skip to content

Commit

Permalink
Fix Rubocop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehook committed Oct 17, 2023
1 parent 896b040 commit b6460a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
8 changes: 0 additions & 8 deletions app/models/application_choice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,6 @@ def supplementary_statuses
end
end

def supplementary_statuses
[].tap do |supplementary_statuses|
if recruited? && RecruitedWithPendingConditions.new(application_choice: self).call
supplementary_statuses << :ske_pending_conditions
end
end
end

private

def set_initial_status
Expand Down
2 changes: 1 addition & 1 deletion spec/mailers/candidate_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@
end

before do
FeatureFlag.activate(:recruit_with_pending_conditions)
FeatureFlag.activate(:recruit_with_pending_conditions)
application_choices.first.provider.provider_type = :scitt
application_choices.first.course.start_date = 2.months.from_now
end
Expand Down
6 changes: 3 additions & 3 deletions spec/mailers/previews/candidate_mailer_preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -813,12 +813,12 @@ def conditions_met

def conditions_met_with_pending_ske_conditions
FeatureFlag.activate(:recruit_with_pending_conditions)
application_choice = application_choice_with_offer.tap do |choice|
application_choice = application_choice_pending_conditions.tap do |choice|
choice.offer.conditions.first.status = :met
choice.offer.ske_conditions = [FactoryBot.build_stubbed(:ske_condition, status: :pending)]
choice.status = :recruited
choice.provider.provider_type = :scitt
choice.course.start_date = 1.month.from_now
choice.current_course_option.provider.provider_type = :scitt
choice.current_course_option.course.start_date = 1.month.from_now
end

CandidateMailer.conditions_met(application_choice)
Expand Down

0 comments on commit b6460a2

Please sign in to comment.