diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-06-29 02:28:25 -0300 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-06-29 02:28:25 -0300 |
commit | f83d8b25291d66d9213190f61c2874b96482dd3f (patch) | |
tree | bf8e7d15ff074aaa1fc14a0a87e8208964c40555 | |
parent | 29a196464b9e65bcd54c10e2fec45e8f5eba4128 (diff) | |
download | highline-f83d8b25291d66d9213190f61c2874b96482dd3f.tar.gz |
Stub default_instance on a test
-rwxr-xr-x | test/test_highline.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_highline.rb b/test/test_highline.rb index 7ca25c0..0bd2d99 100755 --- a/test/test_highline.rb +++ b/test/test_highline.rb @@ -1612,6 +1612,7 @@ class TestHighLine < Minitest::Test HighLine.track_eof = false begin require 'highline/import' + HighLine.default_instance = HighLine.new(StringIO.new, StringIO.new) ask("And now? ") # this will still blow up, nothing available rescue refute_equal(EOFError, $!.class) # but HighLine's safe guards are off |