To improve testing, add a layer of indirection around colours.

This commit is contained in:
Felipe Sere
2016-05-14 00:12:42 +02:00
parent 0936ed56e2
commit ddcd971ede
8 changed files with 55 additions and 24 deletions

View File

@@ -4,6 +4,6 @@ defmodule NotificationTest do
test "shows possible koans when a koan can not be found" do
message = Notifications.invalid_koan(SampleKoan, [PassingKoan])
assert message == "Did not find koan SampleKoan in \e[31mPassingKoan\e[0m"
assert message == "Did not find koan SampleKoan in PassingKoan"
end
end