require 'spec_helper' describe "ey logs" do it_should_behave_like "an integration test" it "prints logs returned by awsm" do api_scenario "one app, one environment" ey "logs giblets" @out.should match(/MAIN LOG OUTPUT/) @out.should match(/CUSTOM LOG OUTPUT/) @err.should be_empty end end describe "ey logs ENV" do it_should_behave_like "an integration test" before(:all) do api_scenario "one app, many similarly-named environments" end it "works when given an unambiguous substring" do ey "logs prod" @out.should match(/MAIN LOG OUTPUT/) end it "complains when given an ambiguous substring" do ey "logs staging", :hide_err => true, :expect_failure => true @err.should match(/'staging' is ambiguous/) end end