Sha256: 316e38f8d244fd6c4589dfd8d7d3456edc08b9d228b4657d4a2db87dbafb0a32

Contents?: true

Size: 490 Bytes

Versions: 7

Compression:

Stored size: 490 Bytes

Contents

require "test_helper"

class RedGreenTest < Test::Unit::TestCase
  context "adding pretty colors" do

    should "wrap in green" do
      assert_equal "\e[32mtrees\e[0m", Jstdutil::RedGreen::Color.green("trees")
    end

    should "wrap in red" do
      assert_equal "\e[31mdress\e[0m", Jstdutil::RedGreen::Color.red("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

7 entries across 7 versions & 1 rubygems

Version Path
jstdutil-0.3.3 test/redgreen_test.rb
jstdutil-0.3.2 test/redgreen_test.rb
jstdutil-0.3.1 test/redgreen_test.rb
jstdutil-0.3.0 test/redgreen_test.rb
jstdutil-0.2.2 test/redgreen_test.rb
jstdutil-0.2.1 test/redgreen_test.rb
jstdutil-0.2.0 test/redgreen_test.rb