Sha256: e5addb4af686bd4ea80a7aba25f0504874006a529a26c8c6a9cc2554760552ec
Contents?: true
Size: 841 Bytes
Versions: 10
Compression:
Stored size: 841 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) expect(@ssh_commands).to have_command_like(/engineyard-serverside.*disable_maintenance.*--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 expect(@err).to include("Unknown switches") end end
Version data entries
10 entries across 10 versions & 2 rubygems