diff --git a/lib/modules/ruby-bundler-scan/__tests__/bundler-unit.js b/lib/modules/ruby-bundler-scan/__tests__/bundler-unit.js index 189d8ab3..d3e7781e 100644 --- a/lib/modules/ruby-bundler-scan/__tests__/bundler-unit.js +++ b/lib/modules/ruby-bundler-scan/__tests__/bundler-unit.js @@ -32,7 +32,8 @@ describe('Ruby Bundler Module', () => { it('should execute command', async () => { await run(fm) - expect(exec.command).to.have.been.calledTwice + expect(exec.command).to.have.been.calledWith('bundle-audit') + expect(exec.command).to.have.been.calledOnce }) it('should log high severity issues', async () => { diff --git a/lib/modules/ruby-bundler-scan/index.js b/lib/modules/ruby-bundler-scan/index.js index c6a35473..8ac38fbf 100644 --- a/lib/modules/ruby-bundler-scan/index.js +++ b/lib/modules/ruby-bundler-scan/index.js @@ -25,7 +25,6 @@ module.exports = { }, run: async fm => { logger.log('Updating bundler-audit database...') - await exec.command('bundle-audit update', { cwd: fm.target, shell: '/bin/bash' }) const { stdout } = await exec.command('bundle-audit', { cwd: fm.target, shell: '/bin/bash' }) const regex = { name: /Name: /,