diff --git a/app/forms/schools/add_participants/add_wizard.rb b/app/forms/schools/add_participants/add_wizard.rb index 093db366107..088a2d9d5e4 100644 --- a/app/forms/schools/add_participants/add_wizard.rb +++ b/app/forms/schools/add_participants/add_wizard.rb @@ -96,12 +96,6 @@ def needs_to_choose_partnership? mentor_participant? && ([lead_provider, delivery_partner].all? || previous_providers_training_on_current_cohort?) end - # only relevant when we are in the registration period before the next cohort starts - # and the participant doesn't have an induction start date registered with DQT - def show_start_term? - (mentor_participant? || induction_start_date.blank?) && start_term.present? - end - def start_term_description "#{start_term.capitalize} #{start_term == 'spring' ? Time.zone.now.year + 1 : Time.zone.now.year}" end diff --git a/app/forms/schools/add_participants/base_wizard.rb b/app/forms/schools/add_participants/base_wizard.rb index d8223cb766e..62c440f9294 100644 --- a/app/forms/schools/add_participants/base_wizard.rb +++ b/app/forms/schools/add_participants/base_wizard.rb @@ -327,12 +327,6 @@ def same_delivery_partner? false end - def needs_to_confirm_start_term? - # are we in the next registration period (or pre-registration period) and the participant does not have - # an induction start date - (mentor_participant? || induction_start_date.blank?) && !Cohort.within_automatic_assignment_period? - end - ## appropriate bodies def needs_to_confirm_appropriate_body? # Slim possiblity that school_cohort could be nil early on @@ -470,13 +464,11 @@ def cohort_to_place_participant Cohort.containing_date(induction_start_date).tap do |cohort| return Cohort.current if cohort.blank? || cohort.npq_plus_one_or_earlier? end - elsif Cohort.within_automatic_assignment_period? + elsif Cohort.within_automatic_assignment_period? || start_term == "summer" # true from 1/9 to end of automatic assignment period Cohort.current - elsif start_term == "summer" - Cohort.current # we're in the registration window prior to 1/9 - elsif start_term.in? %w[autumn spring] + elsif start_term.in?(%w[autumn spring]) || induction_start_date.blank? # we're in the registration window prior to 1/9 and chose autumn or spring the following year Cohort.next else diff --git a/app/forms/schools/add_participants/wizard_steps/email_step.rb b/app/forms/schools/add_participants/wizard_steps/email_step.rb index 8bf4069a6d6..40d94bc49c6 100644 --- a/app/forms/schools/add_participants/wizard_steps/email_step.rb +++ b/app/forms/schools/add_participants/wizard_steps/email_step.rb @@ -31,8 +31,8 @@ def next_step end elsif wizard.sit_adding_themself_as_mentor? :yourself - elsif wizard.needs_to_confirm_start_term? - :start_term + elsif !Cohort.within_next_registration_period? && !Cohort.within_automatic_assignment_period? + :cannot_add_registration_not_yet_open elsif wizard.needs_to_choose_a_mentor? :choose_mentor elsif wizard.needs_to_confirm_appropriate_body? diff --git a/app/forms/schools/add_participants/wizard_steps/start_term_step.rb b/app/forms/schools/add_participants/wizard_steps/start_term_step.rb deleted file mode 100644 index 6558945bf7f..00000000000 --- a/app/forms/schools/add_participants/wizard_steps/start_term_step.rb +++ /dev/null @@ -1,64 +0,0 @@ -# frozen_string_literal: true - -module Schools - module AddParticipants - module WizardSteps - class StartTermStep < ::WizardStep - attr_accessor :start_term - - validates :start_term, inclusion: { in: ->(form) { form.start_term_options.map(&:id) } } - - def self.permitted_params - %i[ - start_term - ] - end - - def next_step - if !start_term_in_registration_scope? - :cannot_add_registration_not_yet_open - elsif wizard.need_training_setup? - :need_training_setup - elsif wizard.needs_to_choose_a_mentor? - :choose_mentor - elsif wizard.needs_to_confirm_appropriate_body? - :confirm_appropriate_body - elsif wizard.needs_to_choose_partnership? - :choose_partnership - else - :check_answers - end - end - - # if the SIT changes the start_term from check-answers, to an invalid value - # then don't return to check-answers automatically - def evaluate_next_step_on_change? - next_step.in? %i[cannot_add_registration_not_yet_open need_training_setup] - end - - # only visible during or just prior to the registration start for the next cohort - def start_term_options - year = Time.zone.today.year - [ - OpenStruct.new(id: "summer", name: "Summer term #{year}"), - OpenStruct.new(id: "autumn", name: "Autumn term #{year}"), - OpenStruct.new(id: "spring", name: "Spring term #{year + 1}"), - ] - end - - private - - def start_term_in_registration_scope? - return true if Cohort.within_next_registration_period? - return true if cannot_automatically_determine_cohort? && start_term == "summer" - - false - end - - def cannot_automatically_determine_cohort? - !Cohort.within_automatic_assignment_period? - end - end - end - end -end diff --git a/app/forms/schools/add_participants/wizard_steps/who_to_add_participant_checks.rb b/app/forms/schools/add_participants/wizard_steps/who_to_add_participant_checks.rb index 77a947f3cb3..cf74ee37492 100644 --- a/app/forms/schools/add_participants/wizard_steps/who_to_add_participant_checks.rb +++ b/app/forms/schools/add_participants/wizard_steps/who_to_add_participant_checks.rb @@ -58,9 +58,7 @@ def transfer_step_for_type end def cohort_checks - if wizard.needs_to_confirm_start_term? - # we're not sure at this point which cohort is needed - # so allow to proceed at this point + if !Cohort.within_automatic_assignment_period? :none elsif !wizard.registration_open_for_participant_cohort? # we know the cohort at this point (only if induction start date set) diff --git a/app/forms/schools/add_participants/wizard_steps/yourself_step.rb b/app/forms/schools/add_participants/wizard_steps/yourself_step.rb index ec879ac3d86..ba2463f084a 100644 --- a/app/forms/schools/add_participants/wizard_steps/yourself_step.rb +++ b/app/forms/schools/add_participants/wizard_steps/yourself_step.rb @@ -15,8 +15,8 @@ def next_step else :cannot_add_manual_transfer end - elsif wizard.needs_to_confirm_start_term? - :start_term + elsif !Cohort.within_next_registration_period? && !Cohort.within_automatic_assignment_period? + :cannot_add_registration_not_yet_open elsif wizard.needs_to_choose_a_mentor? :choose_mentor elsif wizard.needs_to_confirm_appropriate_body? diff --git a/app/views/schools/add_participants/_ect_or_mentor_answers.html.erb b/app/views/schools/add_participants/_ect_or_mentor_answers.html.erb index f661921b6a6..4d51d4a7baf 100644 --- a/app/views/schools/add_participants/_ect_or_mentor_answers.html.erb +++ b/app/views/schools/add_participants/_ect_or_mentor_answers.html.erb @@ -41,16 +41,6 @@ href: form.change_path_for(step: :email)) %> <% end %> - <% if form.show_start_term? %> - <% summary_list.with_row do |row| %> - <% row.with_key { "Start term" } %> - <% row.with_value { form.start_term_description } %> - <% row.with_action(text: "Change", - visually_hidden_text: "start term", - href: form.change_path_for(step: :start_term)) %> - <% end %> - <% end %> - <% if form.ect_participant? %> <% summary_list.with_row do |row| %> <% row.with_key { "Mentor" } %> diff --git a/app/views/schools/add_participants/start_term.html.erb b/app/views/schools/add_participants/start_term.html.erb deleted file mode 100644 index b1f0ca07a60..00000000000 --- a/app/views/schools/add_participants/start_term.html.erb +++ /dev/null @@ -1,31 +0,0 @@ -<% - if @wizard.sit_mentor? - title = "When will you start mentor training?" - hint = "This is when you’ll start ECF-based mentor training" - else - title = "When will #{@wizard.full_name} start their #{@wizard.ect_participant? ? 'induction' : 'mentor training'}?" - hint = "This is when #{@wizard.full_name} will start their #{@wizard.ect_participant? ? 'induction and begin ECF-based training' : 'ECF-based mentor training'} at your school." - end -%> - -<% content_for :title, title %> - -<% content_for :before_content, govuk_back_link(text: "Back", href: wizard_back_link_path) %> - -
-
- <%= form_with model: @wizard.form, url: url_for(action: :update), scope: @wizard.form_scope, method: :put do |f| %> - <%= f.govuk_error_summary %> - <%= f.govuk_collection_radio_buttons( - :start_term, - @wizard.form.start_term_options, - :id, - :name, - legend: { text: title, tag: 'h1', size: 'l' }, - caption: { text: @school.name, size: "l" }, - hint: { text: hint }) %> - - <%= f.govuk_submit "Continue" %> - <% end %> -
-
diff --git a/spec/features/schools/participants/add_participants/add_ect_as_mentor_spec.rb b/spec/features/schools/participants/add_participants/add_ect_as_mentor_spec.rb index 51fc1b99e8c..65a51da22d1 100644 --- a/spec/features/schools/participants/add_participants/add_ect_as_mentor_spec.rb +++ b/spec/features/schools/participants/add_participants/add_ect_as_mentor_spec.rb @@ -45,10 +45,6 @@ when_i_add_ect_or_mentor_email when_i_click_on_continue - then_i_am_taken_to_mentor_start_training_page - - when_i_choose_summer_term_this_cohort - when_i_click_on_continue then_i_am_taken_to_choose_mentor_partnership_page when_i_choose_current_providers diff --git a/spec/features/schools/participants/add_participants/add_previously_withdrawn_mentor_spec.rb b/spec/features/schools/participants/add_participants/add_previously_withdrawn_mentor_spec.rb index ee293362a62..3ed90d7d777 100644 --- a/spec/features/schools/participants/add_participants/add_previously_withdrawn_mentor_spec.rb +++ b/spec/features/schools/participants/add_participants/add_previously_withdrawn_mentor_spec.rb @@ -69,9 +69,6 @@ and_i_go_through_the_what_we_need_from_you_page and_i_fill_in_all_info - then_i_am_taken_to_mentor_start_training_page - - when_i_choose_summer_term_this_cohort when_i_click_on_continue then_i_am_taken_to_choose_mentor_partnership_page @@ -106,9 +103,6 @@ and_i_go_through_the_what_we_need_from_you_page and_i_fill_in_all_info - then_i_am_taken_to_mentor_start_training_page - - when_i_choose_summer_term_this_cohort when_i_click_on_continue then_i_am_taken_to_choose_mentor_partnership_page @@ -140,9 +134,6 @@ and_i_go_through_the_what_we_need_from_you_page and_i_fill_in_all_info(email: new_email) - then_i_am_taken_to_mentor_start_training_page - - when_i_choose_summer_term_this_cohort when_i_click_on_continue then_i_am_taken_to_choose_mentor_partnership_page @@ -172,9 +163,6 @@ and_i_go_through_the_what_we_need_from_you_page and_i_fill_in_all_info - then_i_am_taken_to_mentor_start_training_page - - when_i_choose_summer_term_this_cohort when_i_click_on_continue then_i_am_taken_to_choose_mentor_partnership_page diff --git a/spec/features/schools/participants/add_participants/reporting_participants_with_trn_spec.rb b/spec/features/schools/participants/add_participants/reporting_participants_with_trn_spec.rb index fde1b6e3314..0cdca9cfdca 100644 --- a/spec/features/schools/participants/add_participants/reporting_participants_with_trn_spec.rb +++ b/spec/features/schools/participants/add_participants/reporting_participants_with_trn_spec.rb @@ -186,9 +186,6 @@ def initialize(day, month, year) when_i_add_email_address_to_the_school_add_participant_wizard "Sally Teacher", participant_data[:email] then_the_page_is_accessible - when_i_choose_summer_term_on_the_school_add_participant_wizard - then_the_page_is_accessible - when_i_choose_current_providers_on_the_school_add_participant_wizard then_the_page_is_accessible diff --git a/spec/features/schools/participants/add_participants/sit_add_ect_spec.rb b/spec/features/schools/participants/add_participants/sit_add_ect_spec.rb index 47ab1fb1d6d..0b4be7cb2d1 100644 --- a/spec/features/schools/participants/add_participants/sit_add_ect_spec.rb +++ b/spec/features/schools/participants/add_participants/sit_add_ect_spec.rb @@ -90,10 +90,6 @@ then_i_am_taken_to_add_yourself_as_mentor_confirmation_page when_i_click_on_confirm - then_i_am_taken_to_sit_mentor_start_training_page - - when_i_choose_summer_term_this_cohort - and_i_click_on_continue then_i_am_taken_to_choose_mentor_partnership_page when_i_choose_current_providers diff --git a/spec/features/schools/participants/add_participants/sit_add_ect_without_induction_start_date_spec.rb b/spec/features/schools/participants/add_participants/sit_add_ect_without_induction_start_date_spec.rb new file mode 100644 index 00000000000..b75c1bf0ea1 --- /dev/null +++ b/spec/features/schools/participants/add_participants/sit_add_ect_without_induction_start_date_spec.rb @@ -0,0 +1,83 @@ +# frozen_string_literal: true + +require "rails_helper" +require_relative "../../training_dashboard/manage_training_steps" + +RSpec.describe "SIT adds ECT participant", js: true do + include ManageTrainingSteps + + before do + inside_registration_window do + set_participant_data + given_there_is_a_school_that_has_chosen_fip_for_current_and_next_cohorts_and_partnered + and_i_am_signed_in_as_an_induction_coordinator + and_i_click_on(Cohort.current.description) + then_i_am_taken_to_fip_induction_dashboard + + set_dqt_validation_result + end + end + + scenario "Participant doesn't have an induction start date" do + inside_registration_window do + when_i_navigate_to_ect_dashboard + when_i_click_to_add_a_new_ect + then_i_should_be_on_the_who_to_add_page + + when_i_select_to_add_a "ECT" + when_i_click_on_continue + + then_i_am_taken_to_the_what_we_need_from_you_page + + when_i_click_on_continue + then_i_am_taken_to_add_ect_name_page + + when_i_add_ect_name + when_i_click_on_continue + then_i_am_taken_to_add_teachers_trn_page + + when_i_add_the_trn + when_i_click_on_continue + then_i_am_taken_to_add_date_of_birth_page + + when_i_add_a_date_of_birth + when_i_click_on_continue + then_i_am_taken_to_add_ect_or_mentor_email_page + + when_i_add_ect_or_mentor_email(email: @participant_data[:email]) + when_i_click_on_continue + + when_i_click_confirm_and_add + then_i_am_taken_to_the_confirmation_page + and_the_participant_has_been_added_to_the_next_cohort + end + end + + def given_there_is_a_school_that_has_chosen_fip_for_current_and_next_cohorts_and_partnered + given_there_is_a_school_that_has_chosen_fip_for_previous_and_current_cohort_and_partnered + @cohort_next = Cohort.next || create(:cohort, :next) + @school_cohort_next = create(:school_cohort, :fip, school: @school, cohort: @cohort_next) + @induction_programme_next = create(:induction_programme, :fip, school_cohort: @school_cohort_next, partnership: @partnership_current) + @school_cohort_next.update!(default_induction_programme: @induction_programme_next) + end + + def then_i_am_taken_to_the_confirmation_page + expect(page).to have_content("#{@participant_data[:full_name]} has been added as an ECT") + end + + def and_the_participant_has_been_added_to_the_next_cohort + expect(@school.ecf_participant_profiles.last.school_cohort).to eq(@school_cohort_next) + end + + def set_participant_data + @participant_data = { + trn: "1234567", + full_name: "Sally Teacher", + date_of_birth: Date.new(1998, 3, 22), + email: "sally@school.com", + nino: "AB123456A", + start_date: nil, + start_term: nil, + } + end +end diff --git a/spec/features/schools/participants/add_participants/sit_add_mentor_in_next_registration_period_spec.rb b/spec/features/schools/participants/add_participants/sit_add_mentor_in_next_registration_period_spec.rb new file mode 100644 index 00000000000..42cdbbb9660 --- /dev/null +++ b/spec/features/schools/participants/add_participants/sit_add_mentor_in_next_registration_period_spec.rb @@ -0,0 +1,89 @@ +# frozen_string_literal: true + +require "rails_helper" +require_relative "../../training_dashboard/manage_training_steps" + +RSpec.describe "SIT adding mentor", js: true do + include ManageTrainingSteps + + before do + inside_registration_window do + given_there_is_a_school_that_has_chosen_cip + given_there_is_a_school_that_has_chosen_fip_for_current_and_next_cohorts_and_partnered + set_participant_data + set_dqt_validation_result + end + end + + scenario "Induction tutor adds a new mentor to current providers" do + inside_registration_window do + given_there_is_a_sit + + when_i_sign_in_as_sit + and_i_click_on(Cohort.current.description) + then_i_am_taken_to_fip_induction_dashboard + + when_i_navigate_to_mentors_dashboard + and_i_click_to_add_a_new_mentor + then_i_should_be_on_the_who_to_add_page + + when_i_select_to_add_a "Mentor" + and_i_click_on_continue + then_i_am_taken_to_the_what_we_need_from_mentor_page + + when_i_click_on_continue + then_i_am_taken_to_add_mentor_full_name_page + + when_i_add_mentor_name + and_i_click_on_continue + then_i_am_taken_to_add_teachers_trn_page + + when_i_add_the_trn + and_i_click_on_continue + then_i_am_taken_to_add_date_of_birth_page + + when_i_add_a_date_of_birth + and_i_click_on_continue + then_i_am_taken_to_add_ect_or_mentor_email_page + + when_i_add_ect_or_mentor_email + and_i_click_on_continue + then_i_am_taken_to_choose_mentor_partnership_page + + when_i_choose_current_providers + and_i_click_on_continue + then_i_am_taken_to_check_answers_page + + when_i_click_confirm_and_add + then_i_am_taken_to_mentor_added_confirmation_page + + when_i_click_on "View your mentors" + then_i_see_the_mentor_name + and_the_mentor_has_been_added_to_the_next_cohort + end + end + + def given_there_is_a_school_that_has_chosen_fip_for_current_and_next_cohorts_and_partnered + given_there_is_a_school_that_has_chosen_fip_for_previous_and_current_cohort_and_partnered + @cohort_next = Cohort.next || create(:cohort, :next) + @school_cohort_next = create(:school_cohort, :fip, school: @school, cohort: @cohort_next) + @induction_programme_next = create(:induction_programme, :fip, school_cohort: @school_cohort_next, partnership: @partnership_current) + @school_cohort_next.update!(default_induction_programme: @induction_programme_next) + end + + def and_the_mentor_has_been_added_to_the_next_cohort + expect(@school.mentor_profiles.last.school_cohort).to eq(@school_cohort_next) + end + + def set_participant_data + @participant_data = { + trn: "1234567", + full_name: "Sally Mentor", + date_of_birth: Date.new(1998, 3, 22), + email: "sally@school.com", + nino: "AB123456A", + start_date: nil, + start_term: nil, + } + end +end diff --git a/spec/features/schools/participants/add_participants/sit_add_mentor_spec.rb b/spec/features/schools/participants/add_participants/sit_add_mentor_spec.rb index 17aeff1070b..64141d47c40 100644 --- a/spec/features/schools/participants/add_participants/sit_add_mentor_spec.rb +++ b/spec/features/schools/participants/add_participants/sit_add_mentor_spec.rb @@ -49,10 +49,6 @@ then_i_am_taken_to_are_you_sure_page when_i_click_on_confirm - then_i_am_taken_to_sit_mentor_start_training_page - - when_i_choose_summer_term_this_cohort - and_i_click_on_continue then_i_am_taken_to_choose_mentor_partnership_page(full_name: @induction_coordinator_profile.full_name) when_i_choose_current_providers @@ -155,10 +151,6 @@ when_i_add_ect_or_mentor_email and_i_click_on_continue - then_i_am_taken_to_mentor_start_training_page - - when_i_choose_summer_term_this_cohort - and_i_click_on_continue then_i_am_taken_to_choose_mentor_partnership_page when_i_choose_current_providers diff --git a/spec/features/schools/participants/add_participants/unhappy_path_can_validate_with_nino_spec.rb b/spec/features/schools/participants/add_participants/unhappy_path_can_validate_with_nino_spec.rb index 2c3a7af904b..c91b2846462 100644 --- a/spec/features/schools/participants/add_participants/unhappy_path_can_validate_with_nino_spec.rb +++ b/spec/features/schools/participants/add_participants/unhappy_path_can_validate_with_nino_spec.rb @@ -68,7 +68,6 @@ and_i_confirm_details_and_continue_on_the_school_add_participant_wizard and_i_add_nino_to_the_school_add_participant_wizard @participant_data[:full_name], @participant_data[:nino] and_i_add_email_address_to_the_school_add_participant_wizard "Sally Teacher", @participant_data[:email] - and_i_choose_summer_term_on_the_school_add_participant_wizard and_i_choose_current_providers_on_the_school_add_participant_wizard and_i_confirm_and_add_on_the_school_add_participant_wizard diff --git a/spec/features/schools/training_dashboard/manage_training_steps.rb b/spec/features/schools/training_dashboard/manage_training_steps.rb index c13e999cb9c..98b3ae8375a 100644 --- a/spec/features/schools/training_dashboard/manage_training_steps.rb +++ b/spec/features/schools/training_dashboard/manage_training_steps.rb @@ -678,10 +678,6 @@ def when_i_choose_other_providers choose option: "other_providers" end - def when_i_choose_summer_term_this_cohort - choose "Summer term #{Cohort.current.start_year + 1}" - end - def when_i_choose_yes choose("Yes") end @@ -1358,18 +1354,10 @@ def then_i_am_taken_to_teacher_start_date_page expect(page).to have_selector("h1", text: "When is Sally Teacher moving to your school?") end - def then_i_am_taken_to_mentor_start_training_page - expect(page).to have_selector("h1", text: "When will #{@participant_data[:full_name]} start their mentor training?") - end - def then_i_am_taken_to_choose_mentor_partnership_page(full_name: @participant_data[:full_name]) expect(page).to have_selector("h1", text: "Who will #{full_name} do their mentor training with?") end - def then_i_am_taken_to_sit_mentor_start_training_page - expect(page).to have_selector("h1", text: "When will you start mentor training?") - end - def then_i_am_taken_to_the_cannot_add_page_same_school expect(page).to have_selector("h1", text: "You cannot add Sally Teacher") expect(page).to have_text("Our records show this person is already registered on an ECF-based training programme at your school") @@ -1487,7 +1475,7 @@ def valid_dqt_response(participant_data) "dob" => participant_data[:date_of_birth], "qualified_teacher_status" => { "qts_date" => 1.year.ago }, "induction" => { - "periods" => [{ "startDate" => 1.month.ago }], + "periods" => [{ "startDate" => @participant_data[:start_date] }], "status" => "Active", }, }) diff --git a/spec/forms/schools/add_participants/wizard_steps/date_of_birth_step_spec.rb b/spec/forms/schools/add_participants/wizard_steps/date_of_birth_step_spec.rb index 299d7db9ae8..6c55f507d14 100644 --- a/spec/forms/schools/add_participants/wizard_steps/date_of_birth_step_spec.rb +++ b/spec/forms/schools/add_participants/wizard_steps/date_of_birth_step_spec.rb @@ -67,7 +67,6 @@ allow(wizard).to receive(:found_participant_in_dqt?).and_return(found_in_dqt) allow(wizard).to receive(:registration_open_for_participant_cohort?).and_return(registration_open) allow(wizard).to receive(:need_training_setup?).and_return(need_setup) - allow(wizard).to receive(:needs_to_confirm_start_term?).and_return(confirm_start_term) allow(wizard).to receive(:participant_withdrawn?).and_return(participant_withdrawn) allow(wizard).to receive(:set_ect_mentor).and_return(nil) end diff --git a/spec/forms/schools/add_participants/wizard_steps/email_step_spec.rb b/spec/forms/schools/add_participants/wizard_steps/email_step_spec.rb index d9637770079..25553339125 100644 --- a/spec/forms/schools/add_participants/wizard_steps/email_step_spec.rb +++ b/spec/forms/schools/add_participants/wizard_steps/email_step_spec.rb @@ -88,7 +88,6 @@ let(:ect_participant) { true } before do - allow(wizard).to receive(:needs_to_confirm_start_term?).and_return(confirm_start_term) allow(wizard).to receive(:needs_to_confirm_appropriate_body?).and_return(confirm_appropriate_body) allow(wizard).to receive(:needs_to_choose_partnership?).and_return(choose_partnership) end diff --git a/spec/forms/schools/add_participants/wizard_steps/nino_step_spec.rb b/spec/forms/schools/add_participants/wizard_steps/nino_step_spec.rb index 9aea411cee0..81f4b90838f 100644 --- a/spec/forms/schools/add_participants/wizard_steps/nino_step_spec.rb +++ b/spec/forms/schools/add_participants/wizard_steps/nino_step_spec.rb @@ -48,7 +48,6 @@ allow(wizard).to receive(:sit_mentor?).and_return(sit_mentor) allow(wizard).to receive(:registration_open_for_participant_cohort?).and_return(registration_open) allow(wizard).to receive(:need_training_setup?).and_return(need_setup) - allow(wizard).to receive(:needs_to_confirm_start_term?).and_return(confirm_start_term) allow(wizard).to receive(:participant_withdrawn?).and_return(participant_withdrawn) allow(wizard).to receive(:set_ect_mentor).and_return(nil) end