Sha256: 340928cc5ec5127e3b729c7b82bed582be0e246752d8ff23d3f1815e454da748
Contents?: true
Size: 1.06 KB
Versions: 16
Compression:
Stored size: 1.06 KB
Contents
require 'spec_helper' describe "Deploying an application that uses Node.js and NPM" do def deploy_test_application @deploy_dir = Dir.mktmpdir( "serverside-deploy-#{Time.now.to_i}-#{$$}") # set up EY::Serverside::Server like we're on a solo EY::Serverside::Server.reset EY::Serverside::Server.add(:hostname => 'localhost', :roles => %w[solo]) # run a deploy config = EY::Serverside::Deploy::Configuration.new({ "strategy" => "NodeIntegrationSpec", "deploy_to" => @deploy_dir, "group" => `id -gn`.strip, "stack" => 'nginx_nodejs', 'app' => 'nodeapp', 'framework_env' => 'staging' }) @binpath = File.expand_path(File.join(File.dirname(__FILE__), '..', 'bin', 'engineyard-serverside')) @deployer = FullTestDeploy.new(config) @deployer.deploy end before(:all) do deploy_test_application end it "runs 'npm install'" do install_cmd = @deployer.commands.grep(/npm install/).first install_cmd.should_not be_nil end end if $NPM_INSTALLED
Version data entries
16 entries across 16 versions & 1 rubygems