Sha256: d99aa20a018337bd722135aa5dfe45ed3787c8f53b18dbf99a98e792bf59706f

Contents?: true

Size: 688 Bytes

Versions: 15

Compression:

Stored size: 688 Bytes

Contents

require 'spec_helper'

describe "ey web disable" do
  given "integration"

  def command_to_run(opts)
    cmd = %w[web disable]
    cmd << "-e" << opts[:environment] if opts[:environment]
    cmd << "-a" << opts[:app]         if opts[:app]
    cmd << "-c" << opts[:account]     if opts[:account]
    cmd << "--verbose"                if opts[:verbose]
    cmd
  end

  def verify_ran(scenario)
    @ssh_commands.should have_command_like(/engineyard-serverside.*deploy enable_maintenance_page.*--app #{scenario[:application]}/)
  end

  it_should_behave_like "it takes an environment name and an app name and an account name"
  it_should_behave_like "it invokes engineyard-serverside"
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
engineyard-1.4.0 spec/ey/web/disable_spec.rb
engineyard-1.3.33 spec/ey/web/disable_spec.rb
engineyard-1.3.32 spec/ey/web/disable_spec.rb
engineyard-1.3.31 spec/ey/web/disable_spec.rb
engineyard-1.3.30 spec/ey/web/disable_spec.rb
engineyard-1.3.29 spec/ey/web/disable_spec.rb
engineyard-1.3.28 spec/ey/web/disable_spec.rb
engineyard-1.3.25 spec/ey/web/disable_spec.rb
engineyard-1.3.22 spec/ey/web/disable_spec.rb
engineyard-1.3.21 spec/ey/web/disable_spec.rb
engineyard-1.3.20 spec/ey/web/disable_spec.rb
engineyard-1.3.19 spec/ey/web/disable_spec.rb
engineyard-1.3.18 spec/ey/web/disable_spec.rb
engineyard-1.3.17 spec/ey/web/disable_spec.rb
engineyard-1.3.16 spec/ey/web/disable_spec.rb