summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorPaul Joseph Davis <davisp@apache.org>2009-04-25 18:29:15 +0000
committerPaul Joseph Davis <davisp@apache.org>2009-04-25 18:29:15 +0000
commit37541bbf91d09ad0200f2c26c7a3f79fdf050801 (patch)
tree0a5b6020ef6a719778a5f8a36838e496f63a39a2 /share
parente5be78e42c38b5546d68d98e4b1db286600e9ed5 (diff)
Resolves COUCHDB-331 - Allow reduce=true&include_docs=false
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@768573 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r--share/www/script/test/view_include_docs.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/www/script/test/view_include_docs.js b/share/www/script/test/view_include_docs.js
index 2c47b696..4d19bf55 100644
--- a/share/www/script/test/view_include_docs.js
+++ b/share/www/script/test/view_include_docs.js
@@ -79,6 +79,11 @@ couchTests.view_include_docs = function(debug) {
resp = db.view('test/summate', {reduce: false, include_docs: true});
T(resp.rows.length == 100);
+ // Not an error with include_docs=false&reduce=true
+ resp = db.view('test/summate', {reduce: true, include_docs: false});
+ T(resp.rows.length == 1);
+ T(resp.rows[0].value == 4950);
+
// Check emitted _rev controls things
resp = db.allDocs({include_docs: true}, ["0"]);
var before = resp.rows[0].doc;