What is the expected syntax for checking exception messages in MiniTest\'s assert_raises
/must_raise
?
I\'m trying to make an assertion somet
To add some more recent developments, there have been some discussions on adding assert_raises_with_message
to minitest in the past without much luck.
Currently, there is a promising pull request waiting to be merged. If and when it gets merged, we will be able to use assert_raises_with_message
without having to define it ourselves.
In the meanwhile, there is this handy little gem named minitest-bonus-assertions which defines exactly that method, along with few others, so that you can use it out of the box. See the docs for more information.