Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2061] Fix tests which will fail when the current cycle ends #4383

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spec/components/add_course_button_preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def provider_code
end

def recruitment_cycle_year
2024
Settings.current_recruitment_cycle_year
end

def accredited_provider?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def when_i_visit_the_course_details_page
end

def when_i_am_authenticated_as_a_provider_user_with_study_sites
providers = [build(:provider, sites: [build(:site), build(:site)], study_sites: [build(:site, :study_site)], courses: [build(:course, :with_accrediting_provider, applications_open_from: '2023-10-10', start_date: '2023-10-10')])]
providers = [build(:provider, sites: [build(:site), build(:site)], study_sites: [build(:site, :study_site)], courses: [build(:course, :with_accrediting_provider)])]
@user = create(:user, providers:)
given_i_am_authenticated(user: @user)
end
Expand Down
Loading