Sha256: bda00ebf1d1b7363ce970096f1ecae1a29ce28a67ff59209cad3315940735f1f
Contents?: true
Size: 421 Bytes
Versions: 2
Compression:
Stored size: 421 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: binary -*- $:.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
librex-0.0.68 | lib/rex/ui/text/color.rb.ut.rb |
librex-0.0.66 | lib/rex/ui/text/color.rb.ut.rb |