From 68f0b74b7feb4067e34c188345b94882ff5431bc Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Thu, 29 Jun 2017 14:47:54 -0300 Subject: Fix test_import --- test/test_import.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/test_import.rb') diff --git a/test/test_import.rb b/test/test_import.rb index b238925..3ec2da8 100644 --- a/test/test_import.rb +++ b/test/test_import.rb @@ -44,12 +44,12 @@ class TestImport < Minitest::Test end def test_redirection - old_terminal = $terminal + old_instance = HighLine.default_instance - $terminal = HighLine.new(nil, (output = StringIO.new)) + HighLine.default_instance = HighLine.new(nil, (output = StringIO.new)) say("Testing...") assert_equal("Testing...\n", output.string) ensure - $terminal = old_terminal + HighLine.default_instance = old_instance end end -- cgit v1.2.1