Open
Description
Expected Behavior
Be able to use the Minitest deprecation tracker with Ruby 2.3.8 and Rails 3.2.22.5 using the Minitest gem at version 4.7.5
Actual Behavior
If I run the deprecation tracker it breaks with the following error:
vendor/bundle/ruby/2.3.0/gems/next_rails-1.3.0/lib/deprecation_tracker.rb:107:in `track_minitest': undefined method `after_run' for MiniTest:Module (NoMethodError)
Possible Fix
Add a check in the next_rails gem if the app is using Minitest v4, then instead of using after_run
it should use the correct method (I think it was after_tests
).
To Reproduce
- Have a Rails 3.2 with Ruby 2.3 and have Minitest v4.7.3 installed
- Configure the deprecation tracker for Minitest
- Run the test suite saving the deprecations
- see the error
Additional Information
I researched a little bit it seems like the Minitest gem at version 4.7.3 doesn't have the after_run
method, it was initially introduced at version 5.0.0
If there are more questions feel free to ping me, 👍
I will abide by the code of conduct