Class: Rex::Ui::Text::Color::UnitTest
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- Rex::Ui::Text::Color::UnitTest
- Defined in:
- lib/rex/ui/text/color.rb.ut.rb
Instance Method Summary collapse
Instance Method Details
#test_color ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/rex/ui/text/color.rb.ut.rb', line 11 def test_color color = Rex::Ui::Text::Color.new.ansi('bold', 'red') color += 'hey sup' color += Rex::Ui::Text::Color.new.ansi('clear') assert_equal("\e[1;31mhey sup\e[0m", color) end |