diff --git a/spec/features/get_a_teacher_relocation_payment/ineligible_route_completing_the_form_spec.rb b/spec/features/get_a_teacher_relocation_payment/ineligible_route_completing_the_form_spec.rb index 7f3c9d0235..e9a571fc37 100644 --- a/spec/features/get_a_teacher_relocation_payment/ineligible_route_completing_the_form_spec.rb +++ b/spec/features/get_a_teacher_relocation_payment/ineligible_route_completing_the_form_spec.rb @@ -8,11 +8,7 @@ end let(:contract_start_date) do - Date.new( - journey_configuration.current_academic_year.start_year, - 1, - 1 - ) + Polices::InternationalRelocationPayments.earliest_eligible_contract_start_date end before do @@ -65,7 +61,7 @@ # FIXME RL waiting on feedback from policy team to determine what the cut # off date is for contracts - xcontext "ineligible - contract start date" do + context "ineligible - contract start date" do it "shows the ineligible page" do when_i_start_the_form and_i_complete_application_route_question_with( diff --git a/spec/features/get_a_teacher_relocation_payment/teacher_route_completing_the_form_spec.rb b/spec/features/get_a_teacher_relocation_payment/teacher_route_completing_the_form_spec.rb index 2e4183a112..ef8959ec01 100644 --- a/spec/features/get_a_teacher_relocation_payment/teacher_route_completing_the_form_spec.rb +++ b/spec/features/get_a_teacher_relocation_payment/teacher_route_completing_the_form_spec.rb @@ -8,7 +8,7 @@ end let(:contract_start_date) do - Date.yesterday + Polices::InternationalRelocationPayments.earliest_eligible_contract_start_date end let(:entry_date) do