Skip to content

Commit

Permalink
stub flipper calls
Browse files Browse the repository at this point in the history
  • Loading branch information
coope93 committed Nov 14, 2024
1 parent 7a5f37f commit 53a1a16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/requests/v0/health_care_applications_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 53a1a16

Please sign in to comment.