Files
geef/test/test_helper.exs
2015-07-31 21:49:52 +02:00

13 lines
289 B
Elixir

ExUnit.start
defmodule RepoHelpers do
def tmp_bare do
{a, b, c} = :erlang.timestamp()
n = node()
dir = :io_lib.format("geef-~p~p~p~p.git", [n, a, b, c])
path = Path.join(System.tmp_dir!, dir)
{:ok, repo} = Geef.Repository.init(path, true)
{repo, path}
end
end