Sha256: 7f34ac3cb356f8cc2c48f2cb384fcdc7e957f0409a2509cd8a6c8c9d9dacb338

Contents?: true

Size: 396 Bytes

Versions: 43

Compression:

Stored size: 396 Bytes

Contents

#!/usr/bin/env ruby

$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))

require 'test/unit'
require 'rex/ui/text/color'

class Rex::Ui::Text::Color::UnitTest < Test::Unit::TestCase

	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

end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
librex-0.0.4 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.3 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.1 lib/rex/ui/text/color.rb.ut.rb