How to Repair an Old Gem (Part 4) - Upgrade Autotest
Checkout Part 1, Part 2, and Part 3 of the series first!
The ancient, venerable, and useful autotest gem died, but was reborn as rspec-autotest. Let’s migrate the library to use it!
We still use the old .autotest hook file, but we replace the old contents:
# autotest config for rspec # see: https://github.com/rspec/rspec/wiki/autotest Autotest.add_hook(:initialize) {|at| at.add_exception %r{^\.git} # ignore Version Control System at.add_exception %r{^pkg} # ignore gem pkg dir # at.