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.8.0.pre4 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.8.0.pre spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.17 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.15.pre spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.14 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.13 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.12 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.12.prewut5 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.12.prewut4 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.12.prewut3 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.12.prewut2 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.12.prewut1 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.12.prewut0 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.11 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.10 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.9pre3 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.9pre2 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.9pre1 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.8 spec/multi_dependency_manager_spec.rb
engineyard-serverside-2.6.8pre2 spec/multi_dependency_manager_spec.rb