From 53a1a164285a64196fcd454f517a622ad88392bf Mon Sep 17 00:00:00 2001 From: Brandon Cooper Date: Thu, 14 Nov 2024 11:24:39 -0500 Subject: [PATCH] stub flipper calls --- spec/requests/v0/health_care_applications_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/requests/v0/health_care_applications_spec.rb b/spec/requests/v0/health_care_applications_spec.rb index 7e379b3508f..0ecbb316767 100644 --- a/spec/requests/v0/health_care_applications_spec.rb +++ b/spec/requests/v0/health_care_applications_spec.rb @@ -15,7 +15,7 @@ let(:current_user) { build(:ch33_dd_user) } before do - Flipper.disable(:hca_disable_bgs_service) + allow(Flipper).to receive(:enabled?).with(:hca_disable_bgs_service).and_return(false) sign_in_as(current_user) end @@ -31,7 +31,7 @@ context 'hca_disable_bgs_service enabled' do before do - Flipper.enable(:hca_disable_bgs_service) + allow(Flipper).to receive(:enabled?).with(:hca_disable_bgs_service).and_return(true) end it 'does not call the BGS Service and returns the rating info as 0' do