Sha256: 6a200f8794583aa3d8b39b13a2510d9b4c4287ca5b3d9a508c432d8c25a09485
Contents?: true
Size: 625 Bytes
Versions: 9
Compression:
Stored size: 625 Bytes
Contents
require "test_helper" class RedGreenTest < Test::Unit::TestCase context "adding pretty colors" do should "wrap in green" do assert_equal "\e[1m\e[32mtrees\e[0m", Jstdutil::RedGreen::Color.green("trees") end should "wrap in red" do assert_equal "\e[1m\e[31mdress\e[0m", Jstdutil::RedGreen::Color.red("dress") end should "wrap in yellow" do assert_equal "\e[1m\e[33mdress\e[0m", Jstdutil::RedGreen::Color.yellow("dress") end end context "wrapping report" do should "add nothing" do assert_equal "bare", Jstdutil::RedGreen.wrap_report("bare") end end end
Version data entries
9 entries across 9 versions & 1 rubygems