Make Reference call the NIF itself

This commit is contained in:
Carlos Martín Nieto
2014-08-03 02:08:44 +02:00
parent 808646a5ca
commit fffdb47032
4 changed files with 69 additions and 28 deletions

View File

@@ -15,8 +15,9 @@ defmodule ObjectTest do
{ :ok, odb } = Repository.odb(repo)
#{ :ok, index } = :geef_index.new
content = "I'm some content"
Odb.write(odb, content, :blob)
content = "This is some text that will go in a file"
{:ok, id} = Odb.write(odb, content, :blob)
assert id == Oid.parse("c300118399f01fe52b316061b5d32beb27e0adfd")
Repository.stop(repo)
end