How to run code before each test case in all tests in MiniTest?
add_setup_hook
was removed in 4.6.0.
https://github.com/seattlerb/minitest/commit/792a480ebeb32983b9150adae575b7c396e2ae63
Use before_setup
instead.
I think that you're looking for the setup()
method.