Sha256: ffeb3f6b8bac7cb2873e3c6d0ed5feca2c717ee52d55c2b7079327c05cbaf36a
Contents?: true
Size: 671 Bytes
Versions: 44
Compression:
Stored size: 671 Bytes
Contents
require 'spec_helper' describe "Deploying an application that uses Node.js and NPM" do with_npm_mocked do |mocked| before(:all) do mock_npm if mocked end context "npm in detect mode" do before do deploy_test_application('nodejs') end it "runs 'npm install'" do install_cmd = @deployer.commands.grep(/npm install/).first expect(install_cmd).not_to be_nil end end context "npm disabled" do before do deploy_test_application('npm_disabled') end it "does not run 'npm install'" do expect(@deployer.commands.grep(/npm/)).to be_empty end end end end
Version data entries
44 entries across 44 versions & 1 rubygems