Sha256: f96a92929c29a589e49708c9e2150e4688c0e8754e904b01fbcd9f2378c31cff
Contents?: true
Size: 1.37 KB
Versions: 8
Compression:
Stored size: 1.37 KB
Contents
require 'spec_helper' describe EY::Serverside::Adapter::DisableMaintenancePage 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 instances" it_should_behave_like "it accepts verbose" it_should_require :app it_should_require :environment_name it_should_require :account_name it_should_require :instances 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'}] end last_command(adapter) end it "invokes exactly the right command" do command.should == [ "engineyard-serverside", "_#{EY::Serverside::Adapter::ENGINEYARD_SERVERSIDE_VERSION}_", "deploy disable_maintenance_page", "--account-name ey", "--app rackapp", "--environment-name rackapp_production", "--instance-names localhost:chewie", "--instance-roles localhost:han,solo", "--instances localhost", ].join(' ') end end end
Version data entries
8 entries across 8 versions & 1 rubygems