summaryrefslogtreecommitdiffstats
path: root/test/structure.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-11-16 10:39:29 +0100
committerSamy Pessé <samypesse@gmail.com>2015-11-16 10:39:29 +0100
commit3a5207a0d2e9450a57c2cae851ddce03a247137f (patch)
treeea363b244c57332ae17aee0141f8f2d4a7fe994a /test/structure.js
parent8df6bdca89a0fce90015340d57b3f70292083c42 (diff)
parente38f3bb88423a17a7d0b292d86805a37f72cbff2 (diff)
downloadgitbook-3a5207a0d2e9450a57c2cae851ddce03a247137f.zip
gitbook-3a5207a0d2e9450a57c2cae851ddce03a247137f.tar.gz
gitbook-3a5207a0d2e9450a57c2cae851ddce03a247137f.tar.bz2
Merge pull request #1016 from GitbookIO/fix/999
Fix #999: detection of structure should be case incensitive
Diffstat (limited to 'test/structure.js')
-rw-r--r--test/structure.js18
1 files changed, 15 insertions, 3 deletions
diff --git a/test/structure.js b/test/structure.js
index b25a021..90413cb 100644
--- a/test/structure.js
+++ b/test/structure.js
@@ -1,8 +1,20 @@
describe('Structure', function () {
- it('should prioritize structure defined in book.json', function() {
+ var book;
+
+ before(function() {
return books.parse('structure')
- .then(function(book) {
- book.readmeFile.should.equal('README.adoc');
+ .then(function(_book) {
+ book = _book;
});
});
+
+
+ it('should prioritize structure defined in book.json', function() {
+ book.readmeFile.should.equal('README.adoc');
+ });
+
+ it('should be case incensitive', function() {
+ book.glossaryFile.should.equal('glossary.md');
+ book.glossary.should.have.lengthOf(1);
+ });
});