Added optional HTML-formatting
[jstestdriver-utilities:jstdutil.git] / test / redgreen_test.rb
1 require "test_helper"
2
3 class RedGreenTest < Test::Unit::TestCase
4   context "adding colors" do
5
6     should "wrap in green" do
7       assert_equal "\e[32mtrees\e[0m", Jstdutil::RedGreen::Color.green("trees")
8     end
9
10     should "wrap in red" do
11       assert_equal "\e[31mdress\e[0m", Jstdutil::RedGreen::Color.red("dress")
12     end
13
14   end
15 end