Sha256: 8531c02bc02c04cdcd142e88426202590d8509bdfab1eafed70c2f15a7672896

Contents?: true

Size: 571 Bytes

Versions: 5

Compression:

Stored size: 571 Bytes

Contents

require 'spec_helper'

describe "ey web disable" do
  given "integration"

  def command_to_run(opts)
    cmd = "web disable"
    cmd << " -e #{opts[:env]}" if opts[:env]
    cmd << " -a #{opts[:app]}" if opts[:app]
    cmd << " --verbose" if opts[:verbose]
    cmd
  end

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

  it_should_behave_like "it takes an environment name"
  it_should_behave_like "it takes an app name"
  it_should_behave_like "it invokes eysd"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
engineyard-0.9.0 spec/ey/web/disable_spec.rb
engineyard-0.8.2 spec/ey/web/disable_spec.rb
engineyard-0.8.1 spec/ey/web/disable_spec.rb
engineyard-0.8.0 spec/ey/web/disable_spec.rb
engineyard-0.7.1 spec/ey/web/disable_spec.rb