Files
geef/test/test_helper.exs
Carlos Martín Nieto 808646a5ca Work towards elixir 14
While here, make the object be an elixir struct instead of delegating to
the erlang code.

As part of this, geef_nif:commit_tree() has been fixed to return the id,
insted of the type, as we know it's going to be a tree, but not then id.
2014-08-03 01:03:17 +02:00

13 lines
283 B
Elixir

ExUnit.start
defmodule RepoHelpers do
def tmp_bare do
{a, b, c} = :erlang.now()
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