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.35 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.34 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.33 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.32 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.31 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.30 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.29 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.28 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.27 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.26 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.25 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.23 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.21 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.19 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.17 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.13 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.12 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.7 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.6 lib/rex/ui/text/color.rb.ut.rb
librex-0.0.5 lib/rex/ui/text/color.rb.ut.rb