diff --git a/lib/display/intro.ex b/lib/display/intro.ex index 32ce92d2..1604a6f8 100644 --- a/lib/display/intro.ex +++ b/lib/display/intro.ex @@ -6,7 +6,7 @@ defmodule Display.Intro do if module in modules do "" else - show_intro(module.intro) + show_intro(module.intro()) end end diff --git a/lib/execute.ex b/lib/execute.ex index 6c462738..6fb039c2 100644 --- a/lib/execute.ex +++ b/lib/execute.ex @@ -1,7 +1,7 @@ defmodule Execute do @moduledoc false def run_module(module, callback \\ fn _result, _module, _koan -> nil end) do - Enum.reduce_while(module.all_koans, :passed, fn koan, _ -> + Enum.reduce_while(module.all_koans(), :passed, fn koan, _ -> module |> run_koan(koan) |> hook(module, koan, callback) diff --git a/lib/tracker.ex b/lib/tracker.ex index 018dd83b..79c36df8 100644 --- a/lib/tracker.ex +++ b/lib/tracker.ex @@ -18,7 +18,7 @@ defmodule Tracker do def set_total(modules) do total = modules - |> Enum.flat_map(& &1.all_koans) + |> Enum.flat_map(& &1.all_koans()) |> Enum.count() Agent.update(__MODULE__, fn _ -> %Tracker{total: total} end) diff --git a/test/executor_test.exs b/test/executor_test.exs index 629c1eea..1996a5e4 100644 --- a/test/executor_test.exs +++ b/test/executor_test.exs @@ -7,7 +7,7 @@ defmodule ExecuteTest do test "stops at the first failing koan" do {:failed, %{file: file, line: line}, SampleKoan, _name} = Execute.run_module(SampleKoan) - assert file == 'test/support/sample_koan.ex' + assert file == ~c"test/support/sample_koan.ex" assert line == 9 end diff --git a/test/test_helper.exs b/test/test_helper.exs index b7c383e4..bad94561 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -6,7 +6,7 @@ defmodule TestHarness do import ExUnit.Assertions def test_all(module, answers) do - module.all_koans + module.all_koans() |> check_answer_count(answers, module) |> Enum.zip(answers) |> run_all(module)