Sha256: c42ce2c084104239831b3dcda7e3f5da677f4de8c72ad54cf2d8834200ab928f
Contents?: true
Size: 480 Bytes
Versions: 3
Compression:
Stored size: 480 Bytes
Contents
# coding: utf-8 require 'helper' class TestColor < Test::Unit::TestCase def test_colorize assert_equal "\e[35mBoom!\e[0m", Boom::Color.colorize("Boom!", :magenta) end def test_magenta assert_equal "\e[35mMagenta!\e[0m", Boom::Color.magenta("Magenta!") end def test_red assert_equal "\e[31mRed!\e[0m", Boom::Color.red("Red!") end def test_yellow assert_equal "\e[33mYellow!\e[0m", Boom::Color.yellow("Yellow!") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
boom-0.2.3 | test/test_color.rb |
boom-0.2.2 | test/test_color.rb |
boom-0.2.1 | test/test_color.rb |