diff options
author | Dāvis <davispuh@gmail.com> | 2013-06-01 14:37:56 +0300 |
---|---|---|
committer | Dāvis <davispuh@gmail.com> | 2013-06-01 14:37:56 +0300 |
commit | 172de3edaaac7846a138143c24f19b3527ee8137 (patch) | |
tree | 41c56b7cd2090ca4a7692e2dbf823474b819c448 /test/tc_highline.rb | |
parent | b49be7cf33b121211bc5212c640814f22f44eb02 (diff) | |
download | highline-172de3edaaac7846a138143c24f19b3527ee8137.tar.gz |
Add test for frozen statement
Diffstat (limited to 'test/tc_highline.rb')
-rwxr-xr-x | test/tc_highline.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/tc_highline.rb b/test/tc_highline.rb index 7fc0ba4..e09e966 100755 --- a/test/tc_highline.rb +++ b/test/tc_highline.rb @@ -247,6 +247,11 @@ class TestHighLine < Test::Unit::TestCase assert_equal(1, answer) end + def test_frozen_statement + @terminal.say('This is a frozen statement'.freeze) + assert_equal("This is a frozen statement\n", @output.string) + end + def test_color @terminal.say("This should be <%= BLUE %>blue<%= CLEAR %>!") assert_equal("This should be \e[34mblue\e[0m!\n", @output.string) |