Skip to content

Commit f57dd96

Browse files
authored
Merge pull request #5297 from nhsuk/not-to-raise-error
Remove call to `raise_error` with argument
2 parents 4eb4349 + 554e262 commit f57dd96

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

spec/lib/nhs/immunisations_api_spec.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -965,9 +965,7 @@
965965
end
966966

967967
it "doesn't raise an error" do
968-
expect { perform_request }.not_to raise_error(
969-
NHS::ImmunisationsAPI::OperationOutcomeInBundle
970-
)
968+
expect { perform_request }.not_to raise_error
971969
end
972970

973971
it "raises a warning, and sends to Sentry" do
@@ -990,9 +988,7 @@
990988
end
991989

992990
it "doesn't raise an error" do
993-
expect { perform_request }.not_to raise_error(
994-
NHS::ImmunisationsAPI::OperationOutcomeInBundle
995-
)
991+
expect { perform_request }.not_to raise_error
996992
end
997993

998994
include_examples "continues the job and consumes the records"

0 commit comments

Comments
 (0)