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