Sha256: 2805bdd581f16c7ee8767966a4d15ea8c007f1d3804b014341501c25c759e403
Contents?: true
Size: 854 Bytes
Versions: 8
Compression:
Stored size: 854 Bytes
Contents
require 'spec_helper' describe "ey rollback" do given "integration" def command_to_run(opts) cmd = "rollback" cmd << " -e #{opts[:env]}" if opts[:env] cmd << " -a #{opts[:app]}" if opts[:app] cmd << " --verbose" if opts[:verbose] cmd end def verify_ran(scenario) @out.should match(/Rolling back.*#{scenario[:application]}.*#{scenario[:environment]}/) @err.should be_empty @ssh_commands.last.should match(/ey-deploy.*deploy rollback.*--app #{scenario[:application]}/) end it_should_behave_like "it takes an environment name" it_should_behave_like "it takes an app name" it_should_behave_like "it invokes ey-deploy" it "passes along the web server stack to ey-deploy" do api_scenario "one app, one environment" ey "rollback" @ssh_commands.last.should =~ /--stack nginx_mongrel/ end end
Version data entries
8 entries across 8 versions & 1 rubygems