summaryrefslogtreecommitdiffstats
path: root/test/readme.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/readme.js')
-rw-r--r--test/readme.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/readme.js b/test/readme.js
index 0ebb490..fd084cb 100644
--- a/test/readme.js
+++ b/test/readme.js
@@ -28,6 +28,19 @@ describe('Readme', function() {
});
});
});
+
+ it('should parse AsciiDoc readme', function() {
+ return mock.setupBook({
+ 'README.adoc': '# Hello World\n\nThis is my book\n'
+ })
+ .then(function(book) {
+ return book.readme.load()
+ .then(function() {
+ book.readme.title.should.equal('Hello World');
+ book.readme.description.should.equal('This is my book');
+ });
+ });
+ });
});
});