diff --git a/spec/controllers/v0/contact_us/inquiries_controller_spec.rb b/spec/controllers/v0/contact_us/inquiries_controller_spec.rb index f866966e2d0..d8837892b57 100644 --- a/spec/controllers/v0/contact_us/inquiries_controller_spec.rb +++ b/spec/controllers/v0/contact_us/inquiries_controller_spec.rb @@ -51,6 +51,10 @@ def send_create post(:create, params: { ask: { form: } }) end + before do + allow(Flipper).to receive(:enabled?).and_call_original + end + context 'when Flipper :get_help_ask_form is' do context 'disabled' do it 'renders :not_implemented' do diff --git a/spec/models/saved_claim/education_benefits/va10203_spec.rb b/spec/models/saved_claim/education_benefits/va10203_spec.rb index aa4567df4a9..cd567e742d6 100644 --- a/spec/models/saved_claim/education_benefits/va10203_spec.rb +++ b/spec/models/saved_claim/education_benefits/va10203_spec.rb @@ -9,6 +9,10 @@ let(:user) { create(:user) } let!(:user_verification) { create(:idme_user_verification, idme_uuid: user.idme_uuid) } + before do + allow(Flipper).to receive(:enabled?).and_call_original + end + it_behaves_like 'saved_claim' validate_inclusion(:form_id, '22-10203') diff --git a/spec/sidekiq/education_form/create_daily_spool_files_spec.rb b/spec/sidekiq/education_form/create_daily_spool_files_spec.rb index 49b2e9092ae..9d265c24718 100644 --- a/spec/sidekiq/education_form/create_daily_spool_files_spec.rb +++ b/spec/sidekiq/education_form/create_daily_spool_files_spec.rb @@ -10,6 +10,10 @@ end let(:line_break) { EducationForm::CreateDailySpoolFiles::WINDOWS_NOTEPAD_LINEBREAK } + before do + allow(Flipper).to receive(:enabled?).and_call_original + end + after(:all) do FileUtils.rm_rf('tmp/spool_files') end diff --git a/spec/sidekiq/education_form/process10203_submissions_spec.rb b/spec/sidekiq/education_form/process10203_submissions_spec.rb index d0df50fbfaf..b57ad52a848 100644 --- a/spec/sidekiq/education_form/process10203_submissions_spec.rb +++ b/spec/sidekiq/education_form/process10203_submissions_spec.rb @@ -16,6 +16,10 @@ let(:no_edipi_user) { create(:user, participant_id: nil) } let(:evss_response_with_poa) { OpenStruct.new(body: get_fixture('json/evss_with_poa')) } + before do + allow(Flipper).to receive(:enabled?).and_call_original + end + describe 'scheduling' do before do allow(Rails.env).to receive('development?').and_return(true)