Skip to content

Commit

Permalink
update spec to check that service is not called and update name
Browse files Browse the repository at this point in the history
  • Loading branch information
coope93 committed Nov 13, 2024
1 parent a6a8755 commit 7a5f37f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/requests/v0/health_care_applications_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
Flipper.enable(:hca_disable_bgs_service)
end

it 'returns the rating info as 0' do
VCR.use_cassette('bgs/service/find_rating_data', VCR::MATCH_EVERYTHING) do
get(rating_info_v0_health_care_applications_path)
end
it 'does not call the BGS Service and returns the rating info as 0' do
expect_any_instance_of(BGS::Service).not_to receive(:find_rating_data)

get(rating_info_v0_health_care_applications_path)

expect(JSON.parse(response.body)['data']['attributes']).to eq(
{ 'user_percent_of_disability' => 0 }
Expand Down

0 comments on commit 7a5f37f

Please sign in to comment.