summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbinoam P. Marques Jr <abinoam@gmail.com>2017-06-29 02:23:58 -0300
committerAbinoam P. Marques Jr <abinoam@gmail.com>2017-06-29 02:23:58 -0300
commit90d79ee9cb38c909dde3c284057f4494af609586 (patch)
tree1ff6f4077082446418a6769ad80db399fab24b6e
parent0e30c7dfeca2951e9a68979f6468f7b3c9b7bccd (diff)
downloadhighline-90d79ee9cb38c909dde3c284057f4494af609586.tar.gz
Don't use the instance on test
-rwxr-xr-xtest/test_highline.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_highline.rb b/test/test_highline.rb
index ce1233d..7ca25c0 100755
--- a/test/test_highline.rb
+++ b/test/test_highline.rb
@@ -1611,7 +1611,8 @@ class TestHighLine < Minitest::Test
old_setting = HighLine.track_eof?
HighLine.track_eof = false
begin
- @terminal.ask("And now? ") # this will still blow up, nothing available
+ require 'highline/import'
+ ask("And now? ") # this will still blow up, nothing available
rescue
refute_equal(EOFError, $!.class) # but HighLine's safe guards are off
end