summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbinoam P. Marques Jr <abinoam@gmail.com>2017-06-25 01:20:07 -0300
committerAbinoam P. Marques Jr <abinoam@gmail.com>2017-06-25 01:20:07 -0300
commite54a06cd3039f8654fd4dbfc0083b62dc1b852f8 (patch)
tree6de0156e2cd44a7d691c9c17870ac25c48af9654
parent7c9975f982d58ab85baf5830b580acae04a2d953 (diff)
downloadhighline-e54a06cd3039f8654fd4dbfc0083b62dc1b852f8.tar.gz
Add reset_use_color when HighLine.reset 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 94e6f2c..ce1233d 100755
--- a/test/test_highline.rb
+++ b/test/test_highline.rb
@@ -610,6 +610,13 @@ class TestHighLine < Minitest::Test
assert HighLine.use_color?
end
+ def test_reset_use_color_when_highline_reset
+ HighLine.use_color = false
+ refute HighLine.use_color?
+ HighLine.reset
+ assert HighLine.use_color?
+ end
+
def test_uncolor
# instance method
assert_equal( "This should be reverse underlined magenta!\n",