couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject couch-mrview commit: updated refs/heads/master to 95cbd7b
Date Fri, 18 Sep 2015 22:57:07 GMT
Repository: couchdb-couch-mrview
Updated Branches:
  refs/heads/master 85b83187f -> 95cbd7b2a


Fix tests


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

Branch: refs/heads/master
Commit: 95cbd7b2a0f2dd2f838d995fc0d677e48436b9bb
Parents: 85b8318
Author: Klaus Trainer <klaus_trainer@posteo.de>
Authored: Sat Sep 12 20:54:04 2015 +0200
Committer: Klaus Trainer <klaus_trainer@posteo.de>
Committed: Sat Sep 12 21:04:35 2015 +0200

----------------------------------------------------------------------
 test/couch_mrview_ddoc_validation_tests.erl | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/95cbd7b2/test/couch_mrview_ddoc_validation_tests.erl
----------------------------------------------------------------------
diff --git a/test/couch_mrview_ddoc_validation_tests.erl b/test/couch_mrview_ddoc_validation_tests.erl
index 17cd4d3..89ae138 100644
--- a/test/couch_mrview_ddoc_validation_tests.erl
+++ b/test/couch_mrview_ddoc_validation_tests.erl
@@ -51,7 +51,9 @@ should_reject_invalid_js_map(Db) ->
             ]}}
         ]}}
     ]}),
-    ?_assertThrow({compilation_error, _}, couch_db:update_doc(Db, Doc, [])).
+    ?_assertThrow(
+        {bad_request, compilation_error, _},
+        couch_db:update_doc(Db, Doc, [])).
 
 should_reject_invalid_js_reduce(Db) ->
     Doc = couch_doc:from_json_obj({[
@@ -63,7 +65,9 @@ should_reject_invalid_js_reduce(Db) ->
             ]}}
         ]}}
     ]}),
-    ?_assertThrow({compilation_error, _}, couch_db:update_doc(Db, Doc, [])).
+    ?_assertThrow(
+        {bad_request, compilation_error, _},
+        couch_db:update_doc(Db, Doc, [])).
 
 should_reject_invalid_builtin_reduce(Db) ->
     Doc = couch_doc:from_json_obj({[
@@ -75,4 +79,6 @@ should_reject_invalid_builtin_reduce(Db) ->
             ]}}
         ]}}
     ]}),
-    ?_assertThrow({invalid_design_doc, _}, couch_db:update_doc(Db, Doc, [])).
+    ?_assertThrow(
+        {bad_request, invalid_design_doc, _},
+        couch_db:update_doc(Db, Doc, [])).


Mime
View raw message