Sha256: 4eed021386ca90a0d8bef99093867905ebd9eccd152a32be8716dc747b4c8f9b

Contents?: true

Size: 663 Bytes

Versions: 10

Compression:

Stored size: 663 Bytes

Contents

require 'spec_helper'

describe "ey web disable" do
  given "integration"

  def command_to_run(opts)
    cmd = "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

10 entries across 10 versions & 1 rubygems

Version Path
engineyard-1.3.15 spec/ey/web/disable_spec.rb
engineyard-1.3.14 spec/ey/web/disable_spec.rb
engineyard-1.3.13 spec/ey/web/disable_spec.rb
engineyard-1.3.12 spec/ey/web/disable_spec.rb
engineyard-1.3.11 spec/ey/web/disable_spec.rb
engineyard-1.3.10 spec/ey/web/disable_spec.rb
engineyard-1.3.7 spec/ey/web/disable_spec.rb
engineyard-1.3.4 spec/ey/web/disable_spec.rb
engineyard-1.3.3 spec/ey/web/disable_spec.rb
engineyard-1.3.2 spec/ey/web/disable_spec.rb