Skip to content

Commit

Permalink
add flipper toggle expect to spec since it is calling the valid? on a…
Browse files Browse the repository at this point in the history
… saved_claim
  • Loading branch information
coope93 committed Nov 15, 2024
1 parent 852ca8f commit 278c97d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/lib/bgs/form686c_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
VCR.use_cassette('bgs/form686c/submit') do
VCR.use_cassette('bid/awards/get_awards_pension') do
VCR.use_cassette('bgs/service/create_note') do
expect(Flipper).to receive(:enabled?).with(:saved_claim_schema_validation_disable).and_return(true)
expect(Flipper).to receive(:enabled?).with(:dependents_removal_check).and_return(true)
expect(Flipper).to receive(:enabled?).with(:dependents_pension_check).and_return(true)
expect_any_instance_of(BID::Awards::Service).to receive(:get_awards_pension).and_call_original
Expand Down Expand Up @@ -195,6 +196,7 @@
VCR.use_cassette('bgs/form686c/submit') do
VCR.use_cassette('bid/awards/get_awards_pension') do
VCR.use_cassette('bgs/service/create_note') do
expect(Flipper).to receive(:enabled?).with(:saved_claim_schema_validation_disable).and_return(true)
expect(Flipper).to receive(:enabled?).with(:dependents_removal_check).and_return(true)
expect(Flipper).to receive(:enabled?).with(:dependents_pension_check).and_return(true)
expect_any_instance_of(BID::Awards::Service).to receive(:get_awards_pension).and_call_original
Expand Down

0 comments on commit 278c97d

Please sign in to comment.