Extract display into supervision tree.

This commit is contained in:
Nathan Walker
2017-04-24 19:02:53 -05:00
parent 9025744154
commit b71221977c
6 changed files with 91 additions and 53 deletions

View File

@@ -1,23 +1,8 @@
defmodule OptionTest do
use ExUnit.Case, async: true
test "has default options" do
Options.start([])
assert Options.clear_screen?
end
test "override clearing of screen" do
Options.start(["--no-clear-screen"])
refute 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"])
assert Options.clear_screen?
end
end