From 53b61434fb2c2e1c1d710e1f36adbfddae66d607 Mon Sep 17 00:00:00 2001 From: Iain McNulty Date: Mon, 16 Dec 2024 15:41:16 +0000 Subject: [PATCH] provider partnership false for legacy spec --- ...ng_an_accredited_provider_to_an_unpublished_course_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/features/publish/courses/adding_an_accredited_provider_to_an_unpublished_course_spec.rb b/spec/features/publish/courses/adding_an_accredited_provider_to_an_unpublished_course_spec.rb index a1764de28e..2728eb4bba 100644 --- a/spec/features/publish/courses/adding_an_accredited_provider_to_an_unpublished_course_spec.rb +++ b/spec/features/publish/courses/adding_an_accredited_provider_to_an_unpublished_course_spec.rb @@ -3,6 +3,10 @@ require 'rails_helper' feature 'unpublished course without accredited provider', { can_edit_current_and_next_cycles: false } do + before do + allow(Settings.features).to receive(:provider_partnerships).and_return(false) + end + scenario 'adding and changing an accredited provider' do given_i_am_authenticated_as_a_provider_user and_i_visit_the_course_details_page_of_a_course_without_an_accredited_provider