Skip to content

Commit

Permalink
Added default test for Color.
Browse files Browse the repository at this point in the history
  • Loading branch information
hopsoft committed Feb 22, 2015
1 parent 7f7fb08 commit 23b5c7f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/color_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ class Crayon
end
CRAYON = Crayon.new

test "default" do
assert PryTest::Color.default("foo") == "foo"
assert ColorTest::CRAYON.default("foo") == "foo"
end

test "red" do
assert PryTest::Color.red("foo") == "\e[31mfoo\e[0m"
assert ColorTest::CRAYON.red("foo") == "\e[31mfoo\e[0m"
Expand Down

0 comments on commit 23b5c7f

Please sign in to comment.