Skip to content

Commit

Permalink
Changes per code review
Browse files Browse the repository at this point in the history
  • Loading branch information
dfong-adh committed Feb 20, 2025
1 parent a81466e commit e7d7d8b
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions modules/decision_reviews/spec/lib/v1/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
let(:user) { build(:user, :loa3, ssn: ssn_with_mockdata) }

before do
Flipper.disable :decision_review_service_common_exceptions_enabled
allow(Flipper).to receive(:enabled?).with(:decision_review_service_common_exceptions_enabled).and_return(false)
end

describe 'VetsJsonSchema used in service' do
Expand Down Expand Up @@ -184,7 +184,7 @@

describe 'with feature flag enabled' do
before do
Flipper.enable :decision_review_service_common_exceptions_enabled
allow(Flipper).to receive(:enabled?).with(:decision_review_service_common_exceptions_enabled).and_return(true)
end

it 'throws a Common::Exception' do
Expand All @@ -209,7 +209,7 @@

describe 'with feature flag enabled' do
before do
Flipper.enable :decision_review_service_common_exceptions_enabled
allow(Flipper).to receive(:enabled?).with(:decision_review_service_common_exceptions_enabled).and_return(true)
end

it 'throws a Common::Exception' do
Expand Down Expand Up @@ -260,7 +260,7 @@

describe 'with feature flag enabled' do
before do
Flipper.enable :decision_review_service_common_exceptions_enabled
allow(Flipper).to receive(:enabled?).with(:decision_review_service_common_exceptions_enabled).and_return(true)
end

it 'throws a Common::Exception' do
Expand Down Expand Up @@ -320,7 +320,7 @@ def personal_information_logs

describe 'with feature flag enabled' do
before do
Flipper.enable :decision_review_service_common_exceptions_enabled
allow(Flipper).to receive(:enabled?).with(:decision_review_service_common_exceptions_enabled).and_return(true)
end

it 'throws a Common::Exception' do
Expand All @@ -343,7 +343,9 @@ def personal_information_logs
end

describe 'with feature flag enabled' do
before { Flipper.enable :decision_review_service_common_exceptions_enabled }
before do
allow(Flipper).to receive(:enabled?).with(:decision_review_service_common_exceptions_enabled).and_return(true)
end

it 'throws a Common::Exception' do
VCR.use_cassette('decision_review/HLR-GET-CONTESTABLE-ISSUES-RESPONSE-422_V1') do
Expand Down Expand Up @@ -386,7 +388,9 @@ def personal_information_logs
end

describe 'with feature flag enabled' do
before { Flipper.enable :decision_review_service_common_exceptions_enabled }
before do
allow(Flipper).to receive(:enabled?).with(:decision_review_service_common_exceptions_enabled).and_return(true)
end

it 'throws a Common::Exception' do
VCR.use_cassette('decision_review/NOD-CREATE-RESPONSE-422_V1') do
Expand Down Expand Up @@ -436,7 +440,7 @@ def personal_information_logs

describe 'with feature flag enabled' do
before do
Flipper.enable :decision_review_service_common_exceptions_enabled
allow(Flipper).to receive(:enabled?).with(:decision_review_service_common_exceptions_enabled).and_return(true)
end

it 'throws a Common::Exception' do
Expand Down Expand Up @@ -494,7 +498,7 @@ def personal_information_logs

describe 'with feature flag enabled' do
before do
Flipper.enable :decision_review_service_common_exceptions_enabled
allow(Flipper).to receive(:enabled?).with(:decision_review_service_common_exceptions_enabled).and_return(true)
end

it 'throws a Common::Exception' do
Expand Down Expand Up @@ -536,7 +540,7 @@ def personal_information_logs

describe 'with feature flag enabled' do
before do
Flipper.enable :decision_review_service_common_exceptions_enabled
allow(Flipper).to receive(:enabled?).with(:decision_review_service_common_exceptions_enabled).and_return(true)
end

it 'throws a Common::Exception' do
Expand Down Expand Up @@ -636,7 +640,7 @@ def personal_information_logs

describe 'with feature flag enabled' do
before do
Flipper.enable :decision_review_service_common_exceptions_enabled
allow(Flipper).to receive(:enabled?).with(:decision_review_service_common_exceptions_enabled).and_return(true)
end

it 'throws a Common::Exception' do
Expand Down Expand Up @@ -687,7 +691,7 @@ def personal_information_logs

describe 'with feature flag enabled' do
before do
Flipper.enable :decision_review_service_common_exceptions_enabled
allow(Flipper).to receive(:enabled?).with(:decision_review_service_common_exceptions_enabled).and_return(true)
end

it 'throws a Common::Exception' do
Expand Down Expand Up @@ -747,7 +751,7 @@ def personal_information_logs

describe 'with feature flag enabled' do
before do
Flipper.enable :decision_review_service_common_exceptions_enabled
allow(Flipper).to receive(:enabled?).with(:decision_review_service_common_exceptions_enabled).and_return(true)
end

it 'throws a Common::Exception' do
Expand All @@ -771,7 +775,7 @@ def personal_information_logs

describe 'with feature flag enabled' do
before do
Flipper.enable :decision_review_service_common_exceptions_enabled
allow(Flipper).to receive(:enabled?).with(:decision_review_service_common_exceptions_enabled).and_return(true)
end

it 'throws a Common::Exception' do
Expand Down Expand Up @@ -813,7 +817,7 @@ def personal_information_logs

describe 'with feature flag enabled' do
before do
Flipper.enable :decision_review_service_common_exceptions_enabled
allow(Flipper).to receive(:enabled?).with(:decision_review_service_common_exceptions_enabled).and_return(true)
end

it 'throws a Common::Exception' do
Expand Down

0 comments on commit e7d7d8b

Please sign in to comment.