readability/test/test_helper.exs

11 lines
186 B
Elixir

defmodule TestHelper do
@fixtures_path "./test/fixtures/"
def read_fixture(file_name) do
{:ok, html} = File.read(@fixtures_path <> file_name)
html
end
end
ExUnit.start()