Sha256: c7083b75d13b394a7fead5c50148f5da24ff053f30ec460185b7bb1f102a3e03
Contents?: true
Size: 1.85 KB
Versions: 4
Compression:
Stored size: 1.85 KB
Contents
require 'spec_helper' describe EY::Serverside::Adapter::Integrate do it_should_behave_like "it installs engineyard-serverside" it_should_behave_like "it accepts app" it_should_behave_like "it accepts environment_name" it_should_behave_like "it accepts account_name" it_should_behave_like "it accepts framework_env" it_should_behave_like "it accepts instances" it_should_behave_like "it accepts stack" it_should_behave_like "it accepts verbose" it_should_behave_like "it accepts serverside_version" it_should_require :app it_should_require :environment_name it_should_require :account_name it_should_require :stack it_should_require :instances it_should_require :framework_env it_should_ignore_requirement_for_version :environment_name, '1.6.4' it_should_ignore_requirement_for_version :account_name, '1.6.4' context "with valid arguments" do let(:command) do adapter = described_class.new do |arguments| arguments.app = "rackapp" arguments.environment_name = "rackapp_production" arguments.account_name = "ey" arguments.instances = [{:hostname => 'localhost', :roles => %w[han solo], :name => 'chewie'}] arguments.stack = "nginx_unicorn" arguments.framework_env = "production" end last_command(adapter) end it "invokes exactly the right command" do command.should == [ "engineyard-serverside", "_#{EY::Serverside::Adapter::ENGINEYARD_SERVERSIDE_VERSION}_", "integrate", "--account-name ey", "--app rackapp", "--environment-name rackapp_production", "--framework-env production", "--instance-names localhost:chewie", "--instance-roles localhost:han,solo", "--instances localhost", "--stack nginx_unicorn", ].join(' ') end end end
Version data entries
4 entries across 4 versions & 1 rubygems