Sha256: 357cbe31fd93910d0eeb37ee292b045ebdb2c3af06cb2d0dd13168dcd356bd87

Contents?: true

Size: 855 Bytes

Versions: 15

Compression:

Stored size: 855 Bytes

Contents

require 'spec_helper'

describe "ey web enable" do
  given "integration"

  def command_to_run(opts)
    cmd = %w[web enable]
    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 disable_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"

  it "fails when given a bad option" do
    ey %w[web enable --lots --of --bogus --options], :expect_failure => true
    @err.should include("Unknown switches")
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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