ConradIrwin / pry-rescue

Start a pry session whenever something goes wrong.
MIT License
852 stars 49 forks source link

Fix usage with Minitest #129

Open pimpin opened 1 year ago

pimpin commented 1 year ago

Was raising since an upgrade of Minitest.

gems/pry-rescue-1.5.2/lib/pry-rescue/minitest.rb:7:in `<main>': uninitialized constant Minitest::Unit (NameError)

if defined?(Minitest::Test) && Minitest::Unit::VERSION.split('.').first.to_i >= 5
qmenoret commented 7 months ago

👋 Had the same issue and this fixes it (fresh rails app using Minitest) Thanks!

chrism-nc commented 2 weeks ago

Can confirm this issue with modern versions of Minitest as well

@ConradIrwin any chance of getting this merged 🙏