summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2019-06-09 19:04:12 +0300
committerKyrylo Silin <silin@kyrylo.org>2019-06-15 18:35:18 +0300
commit93628e01026ac894d5dc6ae1049083ebbd30b16f (patch)
tree4e51975df5665b4b4f92664009d13581226c336f /spec
parent992c28e246133bc3987a5c639d0eb558b3807832 (diff)
downloadpry-93628e01026ac894d5dc6ae1049083ebbd30b16f.tar.gz
spec_helper: reset Pry defaults after each test
This is not perfect but this reset `Pry.line_buffer`. `pry_eval` writes to it and makes some tests fail randomly. This should probably be rewritten properly but this hack will do to make the tests pass.
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index e577528e..d3335bec 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -45,6 +45,7 @@ RSpec.configure do |config|
config.after(:each) do
Pry::Testable.unset_testenv_variables
+ Pry.reset_defaults
end
config.include Pry::Testable::Mockable
config.include Pry::Testable::Utility