Ever wanted to modify an ENV variable, an instance or class variable for the duration of a block or all tests of a group? This pattern emerged repeatedly in my suites and as I don’t like to bloat my spec helper, about time for the lightweight and dependency-free minitest-substitute gem. Drop cumbersome before and after handling with one or more easy to read `with "ENV['FOO']", "bar"` or `with "@run_at", on: Config { Time.now }` declarations. Happy testing! https://github.com/svoop/minitest-substitute #ruby #minitest
Today I learned that MiniTest was renamed to Minitest -- 10 years ago!
https://github.com/minitest/minitest/commit/9a57c520ceac76abfe6105866f8548a94eb357b6
If you are using Minitest, I think this gem could be very useful for simply running one single test: