diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-06-29 14:51:33 -0300 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-06-29 14:51:33 -0300 |
commit | ebd7997ea485250ba70519d9a54ef7f986bf1be9 (patch) | |
tree | 0082c4fdf31f5c678c11996b4d3d8c2b0dc56381 | |
parent | d4f68a18238bd4f4abb4674bd85abffa70c38e55 (diff) | |
download | highline-ebd7997ea485250ba70519d9a54ef7f986bf1be9.tar.gz |
Fix test_color_setting_per_instance
-rwxr-xr-x | test/test_highline.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |