Oops: make sig tests pass

This commit is contained in:
Carlos Martín Nieto
2013-06-12 02:19:21 +02:00
parent b671c5110e
commit bd44d3f6b0

View File

@@ -4,11 +4,11 @@
-include("src/geef_records.hrl").
now_test() ->
Sig = geef_sig:new("Carlos", "a@b.c"),
{ok, Sig} = geef_sig:new("Carlos", "a@b.c"),
?assertMatch(#geef_signature{name = <<"Carlos">>, email = <<"a@b.c">>, time=_}, Sig).
at_test() ->
Time = {os:timestamp(), 120},
Actual = geef_sig:new("Carlos", "a@b.c", Time),
{ok, Actual} = geef_sig:new("Carlos", "a@b.c", Time),
Expected = #geef_signature{name = <<"Carlos">>, email = <<"a@b.c">>, time = Time},
?assertEqual(Expected, Actual).