Class: Rex::Ui::Text::Color::UnitTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/rex/ui/text/color.rb.ut.rb

Instance Method Summary collapse

Instance Method Details

#test_colorObject



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