diff --git a/spec/system/candidate_interface/course_selection/candidate_arrives_from_find_not_signed_in_spec.rb b/spec/system/candidate_interface/course_selection/candidate_arrives_from_find_not_signed_in_spec.rb index 92e7d0570f6..1287be53cf6 100644 --- a/spec/system/candidate_interface/course_selection/candidate_arrives_from_find_not_signed_in_spec.rb +++ b/spec/system/candidate_interface/course_selection/candidate_arrives_from_find_not_signed_in_spec.rb @@ -53,7 +53,7 @@ def given_i_am_signed_out end def and_the_course_i_selected_only_has_one_site - @course = create(:course, :open, name: 'Potions') + @course = create(:course, :open, name: 'Potions', provider: create(:provider, selectable_school: true)) @site = create(:site, provider: @course.provider) create(:course_option, site: @site, course: @course) end @@ -151,6 +151,7 @@ def given_the_course_i_selected_has_multiple_sites :course, :open, :with_both_study_modes, + provider: create(:provider, selectable_school: true), name: 'Herbology', ) @site1 = create(:site, provider: @course_with_multiple_sites.provider) @@ -198,7 +199,7 @@ def and_i_see_a_link_to_the_course_on_find private def application_choice_for_candidate(candidate:, application_choice_count:) - provider = create(:provider) + provider = create(:provider, selectable_school: true) application_form = create(:application_form, candidate:) application_choice_count.times { course_option_for_provider(provider:) } provider.courses.each do |course| diff --git a/spec/system/candidate_interface/course_selection/candidate_arrives_from_find_with_a_course_with_multiple_sites_spec.rb b/spec/system/candidate_interface/course_selection/candidate_arrives_from_find_with_a_course_with_multiple_sites_spec.rb index d4620903597..ee9fc2f3689 100644 --- a/spec/system/candidate_interface/course_selection/candidate_arrives_from_find_with_a_course_with_multiple_sites_spec.rb +++ b/spec/system/candidate_interface/course_selection/candidate_arrives_from_find_with_a_course_with_multiple_sites_spec.rb @@ -22,7 +22,7 @@ end def given_there_is_a_provider_with_a_course_that_is_only_accepting_applications_on_apply - @provider = create(:provider, code: '8N5', name: 'Snape University') + @provider = create(:provider, code: '8N5', name: 'Snape University', selectable_school: true) @course = create(:course, :open, name: 'Potions', provider: @provider) first_site = create( :site, diff --git a/spec/system/candidate_interface/course_selection/candidate_arrives_from_find_with_a_course_with_multiple_study_modes_spec.rb b/spec/system/candidate_interface/course_selection/candidate_arrives_from_find_with_a_course_with_multiple_study_modes_spec.rb index aee0b687a2b..1a917b03461 100644 --- a/spec/system/candidate_interface/course_selection/candidate_arrives_from_find_with_a_course_with_multiple_study_modes_spec.rb +++ b/spec/system/candidate_interface/course_selection/candidate_arrives_from_find_with_a_course_with_multiple_study_modes_spec.rb @@ -28,7 +28,7 @@ end def given_there_is_a_provider_with_a_course_that_is_only_accepting_applications_on_apply - @provider = create(:provider, name: 'Vim masters') + @provider = create(:provider, name: 'Vim masters', selectable_school: true) @first_site = create(:site, provider: @provider, name: 'Site 1') @second_site = create(:site, provider: @provider, name: 'Site 2') diff --git a/spec/system/candidate_interface/course_selection/candidate_edits_course_choices_spec.rb b/spec/system/candidate_interface/course_selection/candidate_edits_course_choices_spec.rb index 73f7ca7e951..457e8f751aa 100644 --- a/spec/system/candidate_interface/course_selection/candidate_edits_course_choices_spec.rb +++ b/spec/system/candidate_interface/course_selection/candidate_edits_course_choices_spec.rb @@ -77,7 +77,7 @@ def given_i_am_signed_in end def and_there_is_a_course_with_one_course_option - @provider = create(:provider) + @provider = create(:provider, selectable_school: true) create(:course, :open, name: 'English', provider: @provider, study_mode: :full_time) course_option_for_provider(provider: @provider, course: @provider.courses.first) diff --git a/spec/system/candidate_interface/course_selection/candidate_selecting_a_course_study_mode_spec.rb b/spec/system/candidate_interface/course_selection/candidate_selecting_a_course_study_mode_spec.rb index e575ac05fc7..fe543eacc91 100644 --- a/spec/system/candidate_interface/course_selection/candidate_selecting_a_course_study_mode_spec.rb +++ b/spec/system/candidate_interface/course_selection/candidate_selecting_a_course_study_mode_spec.rb @@ -24,7 +24,7 @@ def given_i_am_signed_in end def and_there_are_course_options - @provider = create(:provider, name: 'University of Alien Dance') + @provider = create(:provider, name: 'University of Alien Dance', selectable_school: true) @first_site = create(:site, provider: @provider, name: 'Site 1') @second_site = create(:site, provider: @provider, name: 'Site 2') diff --git a/spec/system/candidate_interface/course_selection/candidate_selecting_a_course_with_multiple_sites_spec.rb b/spec/system/candidate_interface/course_selection/candidate_selecting_a_course_with_multiple_sites_spec.rb index e8c6f9435e3..5739dbc9e1e 100644 --- a/spec/system/candidate_interface/course_selection/candidate_selecting_a_course_with_multiple_sites_spec.rb +++ b/spec/system/candidate_interface/course_selection/candidate_selecting_a_course_with_multiple_sites_spec.rb @@ -74,7 +74,7 @@ def application_choice end def and_there_are_course_options - @provider = create(:provider, name: 'Gorse SCITT', code: '1N1') + @provider = create(:provider, name: 'Gorse SCITT', code: '1N1', selectable_school: true) first_site = create( :site, name: 'Main site',