Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added remove_links test

  • Loading branch information...
commit e5a92548b08507766d3f5e4ff5cd038caf0a5e3c 1 parent 7fa82ea
@dreverri dreverri authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 apps/wriaki/src/wobj.erl
View
8 apps/wriaki/src/wobj.erl
@@ -209,3 +209,11 @@ decode_vclock(undefined) ->
undefined;
decode_vclock(V) ->
base64:decode(V).
+
+-include_lib("eunit/include/eunit.hrl").
+
+remove_links_test() ->
+ WObj = wobj:create(<<"bucket">>,<<"key">>,<<"value">>),
+ WObj1 = wobj:add_link(WObj, {{<<"bucket">>,<<"key">>},<<"tag">>}),
+ WObj2 = wobj:remove_links(WObj1, <<"bucket">>, <<"tag">>),
+ ?assertEqual([], wobj:get_links(WObj2)).
Please sign in to comment.
Something went wrong with that request. Please try again.