Sha256: 58584e525ad4389efe6b46025415b0be8fe63fb10b0b28bdc177713feea1ab82
Contents?: true
Size: 670 Bytes
Versions: 17
Compression:
Stored size: 670 Bytes
Contents
require "test_helper" class ColorfulHtmlTest < Test::Unit::TestCase context "adding pretty colors" do should "wrap in green" do assert_equal "<span class='green'>trees</span>", Jstdutil::ColorfulHtml::Color.green("trees") end should "wrap in red" do assert_equal "<span class='red'>dress</span>", Jstdutil::ColorfulHtml::Color.red("dress") end end context "wrapping report" do should "add styles and pre" do assert_equal "<style>.red {color: #c00;} .green {color: #0c0;} .yellow {color: #ff0;} </style><pre>present</pre>", Jstdutil::ColorfulHtml.wrap_report("present") end end end
Version data entries
17 entries across 17 versions & 1 rubygems