You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thus, the Regexp or String given as the second argument is not doing anything.
These should be changed to use the assert_raises_errmatch helper function which takes a single exception type and a Regexp.
Per discussion with @Fryguy on a different PR there it would be good to improve some of the tests' message checking since that is rarely happening.
Some assertion tests do not do what they advertise:
The documentation for
assert_raises
says it takes one or more exceptions. Oops.https://rubydoc.info/gems/minitest/Minitest%2FAssertions:assert_raises
thus, the Regexp or String given as the second argument is not doing anything.
These should be changed to use the
assert_raises_errmatch
helper function which takes a single exception type and a Regexp.Per discussion with @Fryguy on a different PR there it would be good to improve some of the tests' message checking since that is rarely happening.
@miq-bot add-label test
The text was updated successfully, but these errors were encountered: