diff options
author | Jasha Joachimsthal <jasha@onegini.com> | 2016-03-24 15:23:28 +0100 |
---|---|---|
committer | Jasha Joachimsthal <jasha@onegini.com> | 2016-03-24 15:23:28 +0100 |
commit | 7d21c815a5e710de9247db66c8e87f5e94ad2ce3 (patch) | |
tree | 1de390950daca4aa4f8ffe745d49ac27ae9fd8a1 /test/plugins.js | |
parent | e07719a86c779c8777bae4969313023b37dc671e (diff) | |
download | gitbook-7d21c815a5e710de9247db66c8e87f5e94ad2ce3.zip gitbook-7d21c815a5e710de9247db66c8e87f5e94ad2ce3.tar.gz gitbook-7d21c815a5e710de9247db66c8e87f5e94ad2ce3.tar.bz2 |
Limit splitting plugin name for git+ssh
Diffstat (limited to 'test/plugins.js')
-rw-r--r-- | test/plugins.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/plugins.js b/test/plugins.js index 399cdc5..62cf9ba 100644 --- a/test/plugins.js +++ b/test/plugins.js @@ -81,6 +81,21 @@ describe('Plugins', function() { }) .should.be.fulfilledWith(1); }); + it('should correctly install dependencies from GitHub via ssh', function() { + return mock.setupBook({ + 'book.json': { + plugins: ['ga@git@github.com:GitbookIO/plugin-ga.git#master'] + } + }) + .then(function(book) { + return book.prepareConfig() + .then(function() { + var plugins = new PluginsManager(book); + return plugins.install(); + }); + }) + .should.be.fulfilledWith(1); + }); }); describe('Loading', function() { |