summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_highline.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_highline.rb b/test/test_highline.rb
index 7897326..94e6f2c 100755
--- a/test/test_highline.rb
+++ b/test/test_highline.rb
@@ -603,6 +603,13 @@ class TestHighLine < Minitest::Test
$terminal = old_glob_term
end
+ def test_reset_use_color
+ HighLine.use_color = false
+ refute HighLine.use_color?
+ HighLine.reset_use_color
+ assert HighLine.use_color?
+ end
+
def test_uncolor
# instance method
assert_equal( "This should be reverse underlined magenta!\n",