From ebd7997ea485250ba70519d9a54ef7f986bf1be9 Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Thu, 29 Jun 2017 14:51:33 -0300 Subject: Fix test_color_setting_per_instance --- test/test_highline.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/test_highline.rb b/test/test_highline.rb index 946f110..76ed572 100755 --- a/test/test_highline.rb +++ b/test/test_highline.rb @@ -511,12 +511,12 @@ class TestHighLine < Minitest::Test def test_color_setting_per_instance require 'highline/import' - old_glob_term = $terminal + old_glob_instance = HighLine.default_instance old_setting = HighLine.use_color? gterm_input = StringIO.new gterm_output = StringIO.new - $terminal = HighLine.new(gterm_input, gterm_output) + HighLine.default_instance = HighLine.new(gterm_input, gterm_output) # It can set coloring at HighLine class cli_input = StringIO.new @@ -600,7 +600,7 @@ class TestHighLine < Minitest::Test HighLine.use_color = old_setting @terminal.use_color = old_setting - $terminal = old_glob_term + HighLine.default_instance = old_glob_instance end def test_reset_use_color -- cgit v1.2.1