ConradIrwin / pry-rescue

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

Fix usage with Minitest #129

Open pimpin opened 10 months ago

pimpin commented 10 months 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 5 months ago

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