couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject couch commit: updated refs/heads/local-docs-2978 to 46985c6
Date Mon, 11 Apr 2016 14:54:14 GMT
Repository: couchdb-couch
Updated Branches:
  refs/heads/local-docs-2978 2531c3b81 -> 46985c6a7


review feedback


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/46985c6a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/46985c6a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/46985c6a

Branch: refs/heads/local-docs-2978
Commit: 46985c6a7efcc42666fabf18c392fb6c4a0a003f
Parents: 2531c3b
Author: Garren Smith <garren.smith@gmail.com>
Authored: Mon Apr 11 16:54:01 2016 +0200
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Mon Apr 11 16:54:01 2016 +0200

----------------------------------------------------------------------
 test/couch_etag_tests.erl | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/46985c6a/test/couch_etag_tests.erl
----------------------------------------------------------------------
diff --git a/test/couch_etag_tests.erl b/test/couch_etag_tests.erl
index 0e3125b..9d15e48 100644
--- a/test/couch_etag_tests.erl
+++ b/test/couch_etag_tests.erl
@@ -20,9 +20,11 @@ local_with_empty_body_test() ->
 
 
 local_with_body_test() ->
-    Etag = couch_httpd:doc_etag(<<"_local/local-with-body">>, {[{<<"hello">>,<<"world">>},{<<"relax">>,true}]},
{0, <<"1">>}),
+    DocBody = {[{<<"hello">>,<<"world">>},{<<"relax">>,true}]},
+    Etag = couch_httpd:doc_etag(<<"_local/local-with-body">>, DocBody, {0, <<"1">>}),
     ?assertEqual(Etag, <<"\"CEFXP6WH8OKYIWO1GLGBHKCCA\"">>).
 
-normal_doc_uses_rev() ->
-    Etag = couch_httpd:doc_etag(<<"nomal-doc">>, {[{<<"hello">>,<<"again">>},{<<"relax">>,true}]},
{1, <<"efda11e34e88ebe31a2f83e84a0435b6">>}),
-    ?assertEqual(Etag, <<"\"2-efda11e34e88ebe31a2f83e84a0435b6\"">>).
+normal_doc_uses_rev_test() ->
+    DocBody = {[{<<"hello">>,<<"world">>},{<<"relax">>,true}]},
+    Etag = couch_httpd:doc_etag(<<"nomal-doc">>, DocBody, {1, <<"efda11e34e88ebe31a2f83e84a0435b6">>}),
+    ?assertEqual(Etag, <<"\"1-efda11e34e88ebe31a2f83e84a0435b6\"">>).


Mime
View raw message