Merge pull request #152 from iamvery/fix-failure-display

Properly unwrap the koan body the keyword list argument
This commit is contained in:
Felipe Seré
2016-12-23 16:51:35 +01:00
committed by GitHub

View File

@@ -3,7 +3,7 @@ defmodule Koans do
Regex.match?(~r/([A-Z]|\.\.\.).+/, name)
end
defmacro koan(name, body) do
defmacro koan(name, do: body) do
if not valid_name(name) do
raise "Name does not start with a capital letter: #{name}"
end