Sha256: 48c462c9fa6fc8f6620b446ac241ca0ec1e2f9a79d776a054f2491cbb3df7982

Contents?: true

Size: 747 Bytes

Versions: 44

Compression:

Stored size: 747 Bytes

Contents

require 'spec_helper'

describe "Deploying an application that uses Node.js and NPM" do
  with_composer_mocked do |composer_mocked|
    with_npm_mocked do |npm_mocked|

      before(:all) do
        mock_composer if composer_mocked
        mock_npm if npm_mocked
        deploy_test_application('multi_dep_manager')
      end

      it "runs 'npm install' and 'composer install'" do
        npm_cmd = @deployer.commands.grep(/npm install/).first
        expect(npm_cmd).not_to be_nil

        update_cmd = @deployer.commands.grep(/composer.*self-update/).first
        expect(update_cmd).not_to be_nil

        composer_cmd = @deployer.commands.grep(/composer install/).first
        expect(composer_cmd).not_to be_nil
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
engineyard-serverside-2.7.8pre2 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.8pre1 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.7 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.7.pre2 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.7.pre1 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.6 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.5.pre1 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.5.jacobpre spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.4 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.3 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.2 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.1 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.0 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.5.0 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.5.0.cs6 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.5.0.cs5 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.5.0.cs4 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.5.0.cs3 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.5.0.cs2 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.5.0.cs spec/multi_dependency_manager_spec.rb