Skip to content

Commit

Permalink
[1675] Make tests pass
Browse files Browse the repository at this point in the history
The accredited provider should exist in the current cycle as an accredited provider.

This validation was put in place due to ITT reform where some accredited providers lost
their accredidation at the begining of the 2024 cycle.
  • Loading branch information
avinhurry committed May 21, 2024
1 parent d5a4362 commit c014f6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/features/publish/courses/new_tda_course_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down

0 comments on commit c014f6f

Please sign in to comment.