diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-03-01 16:51:47 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-03-01 16:51:47 +0100 |
commit | 8d9a0a91f0e6a4f617b9e69460e7f967156b7c18 (patch) | |
tree | d0f0266c50c2f84a8f8b610502ad4cec9879a9d1 /test | |
parent | 15640dfdf05bb1bd9929b2423fda4b4fd68f14f6 (diff) | |
download | gitbook-8d9a0a91f0e6a4f617b9e69460e7f967156b7c18.zip gitbook-8d9a0a91f0e6a4f617b9e69460e7f967156b7c18.tar.gz gitbook-8d9a0a91f0e6a4f617b9e69460e7f967156b7c18.tar.bz2 |
Add test for plugin installation from github
Diffstat (limited to 'test')
-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() { |