Sha256: 923e4a17a05da73eafdb1a7320c587028cf850065352f1c729f6ce0dace0949f

Contents?: true

Size: 845 Bytes

Versions: 32

Compression:

Stored size: 845 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

  include_examples "it takes an environment name and an app name and an account name"
  include_examples "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

32 entries across 32 versions & 1 rubygems

Version Path
engineyard-2.0.0.pre5.1 spec/ey/web/enable_spec.rb
engineyard-2.0.0.pre4 spec/ey/web/enable_spec.rb
engineyard-2.0.0.pre3 spec/ey/web/enable_spec.rb
engineyard-2.0.0.pre2 spec/ey/web/enable_spec.rb
engineyard-2.0.0.pre1 spec/ey/web/enable_spec.rb
engineyard-1.7.0.pre2 spec/ey/web/enable_spec.rb
engineyard-1.4.29 spec/ey/web/enable_spec.rb
engineyard-1.4.28 spec/ey/web/enable_spec.rb
engineyard-1.4.27 spec/ey/web/enable_spec.rb
engineyard-1.4.24 spec/ey/web/enable_spec.rb
engineyard-1.4.23 spec/ey/web/enable_spec.rb
engineyard-1.4.22 spec/ey/web/enable_spec.rb
engineyard-1.4.21 spec/ey/web/enable_spec.rb
engineyard-1.4.20 spec/ey/web/enable_spec.rb
engineyard-1.4.19 spec/ey/web/enable_spec.rb
engineyard-1.4.18 spec/ey/web/enable_spec.rb
engineyard-1.4.17 spec/ey/web/enable_spec.rb
engineyard-1.4.16 spec/ey/web/enable_spec.rb
engineyard-1.4.15 spec/ey/web/enable_spec.rb
engineyard-1.4.14 spec/ey/web/enable_spec.rb