rspec/rules/S5958/description.adoc
2020-12-21 15:38:52 +01:00

1 line
252 B
Plaintext

It is not good enough to test if an exception is raised, without checking which exception it is. Such tests will not be able to differentiate the expected exception from an unexpected one. They should instead validate the exception message and/or type.