Sha256: 346711d26c498527964fd22c112cfd78db33ea929a3bafaf0db4d4608d861c4f
Contents?: true
Size: 828 Bytes
Versions: 9
Compression:
Stored size: 828 Bytes
Contents
require 'spec_helper' describe "ey web enable" do given "integration" def command_to_run(opts) cmd = "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 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" it "fails when given a bad option" do ey "web enable --lots --of --bogus --options", :expect_failure => true @err.should include("Unknown switches") end end
Version data entries
9 entries across 9 versions & 1 rubygems