From 278c97ddc15a8a136bba0db8171d9ecc455b378b Mon Sep 17 00:00:00 2001 From: Brandon Cooper Date: Fri, 15 Nov 2024 10:39:33 -0500 Subject: [PATCH] add flipper toggle expect to spec since it is calling the valid? on a saved_claim --- spec/lib/bgs/form686c_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/lib/bgs/form686c_spec.rb b/spec/lib/bgs/form686c_spec.rb index a6d1123a63f..0e55813a3ea 100644 --- a/spec/lib/bgs/form686c_spec.rb +++ b/spec/lib/bgs/form686c_spec.rb @@ -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 @@ -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