diff options
Diffstat (limited to 'test/plugins.js')
-rw-r--r-- | test/plugins.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/plugins.js b/test/plugins.js index b85e507..5d10031 100644 --- a/test/plugins.js +++ b/test/plugins.js @@ -61,6 +61,22 @@ describe('Plugins', function() { }) .should.be.fulfilledWith(1); }); + + it('should correctly install dependencies from GitHub', function() { + return mock.setupBook({ + 'book.json': { + plugins: ['ga@git+https://github.com/GitbookIO/plugin-ga#master'] + } + }) + .then(function(book) { + return book.prepareConfig() + .then(function() { + var plugins = new PluginsManager(book); + return plugins.install(); + }); + }) + .should.be.fulfilledWith(1); + }); }); describe('Loading', function() { |