Skip to content

Commit

Permalink
Use assert_raises instead of assert_raise
Browse files Browse the repository at this point in the history
If minitest_tu_shim is installed, then minitest will be used instead
of test-unit resulting in deprecation warnings for assert_raise.
Use assert_raises because it works with both test-unit and minitest.
  • Loading branch information
joast committed Dec 8, 2023
1 parent 86ec3a1 commit 36013ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
expect who is ever installing the gem to specify directories for
things that are in non-standard locations.

* Use assert_raises instead of assert_raise

If minitest_tu_shim is installed, then minitest will be used instead
of test-unit resulting in deprecation warnings for assert_raise.
Use assert_raises because it works with both test-unit and minitest.

* Default to using test-unit gem even if minitest_tu_shim is installed

Force test-unit gem to be used unless "USE_TEST_UNIT=no" is set in
Expand Down

0 comments on commit 36013ba

Please sign in to comment.