Fix Zeus so that it works with Pry 0.13.0+

More info here: <https://github.com/burke/zeus/issues/674>
This commit is contained in:
Elliot Winkler 2020-07-11 00:30:13 -06:00
parent 778b5f48fa
commit c956f6a44d
1 changed files with 7 additions and 0 deletions

View File

@ -33,6 +33,13 @@ class CustomPlan < Zeus::Plan
$LOAD_PATH << File.expand_path('../lib', __FILE__)
$LOAD_PATH << File.expand_path('../spec', __FILE__)
# Fix Zeus for Pry 0.13.0+
Pry::Pager.class_eval do
def best_available
Pry::Pager::NullPager.new(pry_instance.output)
end
end
require_relative 'spec/support/unit/load_environment'
rescue Gem::LoadError => error
raise CouldNotBootZeusError.create(underlying_error: error)