diff --git a/spec/services/accredited_provider_api_spec.rb b/spec/services/accredited_provider_api_spec.rb index 0a28c526e0..be55ba6ae4 100644 --- a/spec/services/accredited_provider_api_spec.rb +++ b/spec/services/accredited_provider_api_spec.rb @@ -6,7 +6,7 @@ stub_request( :get, - "https://www.publish-teacher-training-courses.service.gov.uk/api/public/v1/recruitment_cycles/2024/providers?filter%5Bis_accredited_body%5D=true", + "https://www.publish-teacher-training-courses.service.gov.uk/api/public/v1/recruitment_cycles/#{next_year}/providers?filter%5Bis_accredited_body%5D=true", ).to_return( status: 200, body: {