Sha256: f3d9c3d5c472fc23eb894e6d15667d08ab5b89d690f5c39b6edec620e07c8f63
Contents?: true
Size: 833 Bytes
Versions: 31
Compression:
Stored size: 833 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.*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 @err.should include("Unknown switches") end end
Version data entries
31 entries across 31 versions & 1 rubygems