Parent

Methods

Class/Module Index [+]

Quicksearch

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

Public Instance Methods

test_color() click to toggle source
# File lib/rex/ui/text/color.rb.ut.rb, line 9
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.