Sha256: d92229c6905ee9b323c6dcdc4cd17eb4be78f33bfd3e9320db8f9740631f1775
Contents?: true
Size: 1.48 KB
Versions: 21
Compression:
Stored size: 1.48 KB
Contents
require 'spec_helper' describe "ey environments" do given "integration" before(:all) do login_scenario "one app, many environments" end it "tells you it's never been deployed" do fast_failing_ey %w[status -e giblets] @err.should =~ /Application rails232app has not been deployed on giblets./ end it "outputs the status of the deployment" do fast_ey %w[deploy -e giblets --ref HEAD --no-migrate] fast_ey %w[status -e giblets] @out.should =~ /Application:\s+rails232app/ @out.should =~ /Environment:\s+giblets/ @out.should =~ /Ref:\s+HEAD/ @out.should =~ /Resolved Ref:\s+resolved-HEAD/ @out.should =~ /Commit:\s+[a-f0-9]{40}/ @out.should =~ /Migrate:\s+false/ @out.should =~ /Deployed by:\s+One App Many Envs/ @out.should =~ /Started at:/ @out.should =~ /Finished at:/ @out.should =~ /Deployment was successful/ end it "quiets almost all of the output with --quiet" do fast_ey %w[deploy -e giblets --ref HEAD --no-migrate] fast_ey %w[status -e giblets -q] @out.should_not =~ /Application:\s+rails232app/ @out.should_not =~ /Environment:\s+giblets/ @out.should_not =~ /Ref:\s+HEAD/ @out.should_not =~ /Resolved Ref:\s+resolved-HEAD/ @out.should_not =~ /Commit:\s+[a-f0-9]{40}/ @out.should_not =~ /Migrate:\s+false/ @out.should_not =~ /Deployed by:\s+One App Many Envs/ @out.should_not =~ /Started at:/ @out.should_not =~ /Finished at:/ @out.should =~ /Deployment was successful/ end end
Version data entries
21 entries across 21 versions & 1 rubygems