diff --git a/spec/features/publish/courses/new_tda_course_spec.rb b/spec/features/publish/courses/new_tda_course_spec.rb index 67a63f2e8f..1500e198c9 100644 --- a/spec/features/publish/courses/new_tda_course_spec.rb +++ b/spec/features/publish/courses/new_tda_course_spec.rb @@ -141,7 +141,8 @@ def given_i_am_authenticated_as_a_school_direct_provider_user recruitment_cycle = create(:recruitment_cycle, year: 2025) @user = create(:user, providers: [build(:provider, recruitment_cycle:, provider_type: 'lead_school', sites: [build(:site), build(:site)], study_sites: [build(:site, :study_site), build(:site, :study_site)])]) @provider = @user.providers.first - @accredited_provider = create(:provider, :accredited_provider, recruitment_cycle:) + create(:provider, :accredited_provider, provider_code: '1BJ') + @accredited_provider = create(:provider, :accredited_provider, provider_code: '1BJ', recruitment_cycle:) @provider.accrediting_provider_enrichments = [] @provider.accrediting_provider_enrichments << AccreditingProviderEnrichment.new( {