From 90d79ee9cb38c909dde3c284057f4494af609586 Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Thu, 29 Jun 2017 02:23:58 -0300 Subject: Don't use the instance on test --- test/test_highline.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') 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 -- cgit v1.2.1