diff --git a/spec/features/publish/courses/add_accredited_provider_when_publishing_a_course_spec.rb b/spec/features/publish/courses/add_accredited_provider_when_publishing_a_course_spec.rb index 0e56ce6491..bd68378a65 100644 --- a/spec/features/publish/courses/add_accredited_provider_when_publishing_a_course_spec.rb +++ b/spec/features/publish/courses/add_accredited_provider_when_publishing_a_course_spec.rb @@ -4,6 +4,7 @@ feature 'Publishing a course when course accrediting provider is invalid', { can_edit_current_and_next_cycles: false } do before do + allow(Settings.features).to receive(:provider_partnerships).and_return(false) given_i_am_authenticated_as_a_provider_user end diff --git a/spec/features/publish/courses/new_accredited_provider_spec.rb b/spec/features/publish/courses/new_accredited_provider_spec.rb index 2c952020a2..507ea08d8d 100644 --- a/spec/features/publish/courses/new_accredited_provider_spec.rb +++ b/spec/features/publish/courses/new_accredited_provider_spec.rb @@ -4,6 +4,7 @@ feature 'selection accredited_bodies', { can_edit_current_and_next_cycles: false } do before do + allow(Settings.features).to receive(:provider_partnerships).and_return(false) given_i_am_authenticated_as_a_provider_user when_i_visit_the_new_accredited_providers_page end diff --git a/spec/features/publish/courses/new_schools_spec.rb b/spec/features/publish/courses/new_schools_spec.rb index 1f33ef0bac..d262e715d3 100644 --- a/spec/features/publish/courses/new_schools_spec.rb +++ b/spec/features/publish/courses/new_schools_spec.rb @@ -4,6 +4,7 @@ feature 'selection schools', { can_edit_current_and_next_cycles: false } do before do + allow(Settings.features).to receive(:provider_partnerships).and_return(false) given_i_am_authenticated_as_a_provider_user and_that_sites_exist when_i_visit_the_publish_courses_new_schools_page