Rename the ref record to geef_reference

Remove the access hacks for elixir and make :geef_reference an elixir
macro as well.
This commit is contained in:
Carlos Martín Nieto
2013-06-05 21:14:04 +02:00
parent 1df7939d4c
commit ac3d2d03fe
4 changed files with 15 additions and 26 deletions

View File

@@ -42,8 +42,8 @@ create_ref_test(Repo) ->
{ok, _} = geef_ref:create(Repo, "refs/heads/other", "refs/heads/branch", true),
{ok, Ref0} = geef_ref:lookup(Repo, "refs/heads/branch"),
{ok, Ref1} = geef_ref:lookup(Repo, "refs/heads/other"),
[?_assertEqual(Ref0#geef_ref.target, Id),
?_assertEqual(Ref1#geef_ref.target, <<"refs/heads/branch">>)].
[?_assertEqual(Ref0#geef_reference.target, Id),
?_assertEqual(Ref1#geef_reference.target, <<"refs/heads/branch">>)].
rm_r(Path) ->
case filelib:is_dir(Path) of