diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-06-29 02:23:58 -0300 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-06-29 02:23:58 -0300 |
commit | 90d79ee9cb38c909dde3c284057f4494af609586 (patch) | |
tree | 1ff6f4077082446418a6769ad80db399fab24b6e /test | |
parent | 0e30c7dfeca2951e9a68979f6468f7b3c9b7bccd (diff) | |
download | highline-90d79ee9cb38c909dde3c284057f4494af609586.tar.gz |
Don't use the instance on test
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_highline.rb | 3 |
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 |