Introduce --koan=<name> to run a specific koan module.

This commit is contained in:
Felipe Sere
2016-04-04 20:57:17 +01:00
parent 734e608b07
commit 88ee80b73d
4 changed files with 35 additions and 3 deletions

View File

@@ -11,6 +11,11 @@ defmodule OptionTest do
assert Options.clear_screen?
end
test "can target specifc koans" do
Options.start(["--koan=Strings"])
assert Options.initial_koan() == Strings
end
test "ignores unknown options" do
Options.start(["--foo"])
refute Options.clear_screen?