Sha256: 2cb16de32b0c896be66e1603a40ed374e429d94b7fc0cdd16bcbaa5e346fc73a

Contents?: true

Size: 936 Bytes

Versions: 51

Compression:

Stored size: 936 Bytes

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 instances"
  it_should_behave_like "it accepts verbose"

  it_should_require :app
  it_should_require :instances

  context "with valid arguments" do
    let(:command) do
      adapter = described_class.new do |arguments|
        arguments.app = "rackapp"
        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 --app rackapp --instance-names localhost:chewie --instance-roles localhost:han,solo --instances localhost"
    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
engineyard-serverside-adapter-1.6.4 spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.6.4.pre6 spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.6.4.pre5 spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.6.4.pre4 spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.6.4.pre3 spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.6.4.pre2 spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.6.4.pre spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.6.3 spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.5.35.pre.2 spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.5.35.pre.1 spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.5.35.pre spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.5.33 spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.5.32 spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.5.30 spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.5.28 spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.5.27 spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.5.26 spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.5.25 spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.5.24 spec/disable_maintenance_page_spec.rb
engineyard-serverside-adapter-1.5.21 spec/disable_maintenance_page_spec.rb