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

Version Path
jstdutil-0.3.13 test/redgreen_test.rb
jstdutil-0.3.12 test/redgreen_test.rb
jstdutil-0.3.11 test/redgreen_test.rb
jstdutil-0.3.10 test/redgreen_test.rb
jstdutil-0.3.9 test/redgreen_test.rb
jstdutil-0.3.8 test/redgreen_test.rb
jstdutil-0.3.7 test/redgreen_test.rb
jstdutil-0.3.6 test/redgreen_test.rb
jstdutil-0.3.5 test/redgreen_test.rb