Permalink
Browse files

Merge branch 'master' of github.com:dscape/nano

* 'master' of github.com:dscape/nano:
  Test for attachments as buffers
  • Loading branch information...
2 parents 6d46cc6 + bb9cfe0 commit 9dfd02c6057a6444f1ecf74b5394980c17ad9b63 @dscape committed Mar 9, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/att/get.js
View
@@ -64,7 +64,8 @@ tests.att_get_ok = function (e,b) {
this.t.notOk(e, 'No Error');
var from_buffer = new Buffer(b, "binary").toString("base64");
this.t.equal(from_buffer, pixel, 'Buffer is pixel');
+ this.t.equal(b.toString("base64"), pixel, 'Result buffer is pixel');
this.t.ok(couch.isDone(), 'Nock is done');
};
-ensure(__filename,tests,module,process.argv[2]);
+ensure(__filename,tests,module,process.argv[2]);

0 comments on commit 9dfd02c

Please sign in to comment.