summaryrefslogtreecommitdiff
path: root/test/test_import.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_import.rb')
-rw-r--r--test/test_import.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_import.rb b/test/test_import.rb
index 3ec2da8..d8526d7 100644
--- a/test/test_import.rb
+++ b/test/test_import.rb
@@ -22,11 +22,11 @@ class TestImport < Minitest::Test
end
def test_or_ask
- old_terminal = $terminal
+ old_instance = HighLine.default_instance
input = StringIO.new
output = StringIO.new
- $terminal = HighLine.new(input, output)
+ HighLine.default_instance = HighLine.new(input, output)
input << "10\n"
input.rewind
@@ -40,7 +40,7 @@ class TestImport < Minitest::Test
assert_equal(10, 20.or_ask("How much? ", Integer) { |q| q.in = 1..10 })
ensure
- $terminal = old_terminal
+ HighLine.default_instance = old_instance
end
def test_redirection