spec/ey/logs_spec.rb in engineyard-0.3.2 vs spec/ey/logs_spec.rb in engineyard-0.3.3

- old
+ new

@@ -8,9 +8,23 @@ ey "logs giblets" @out.should match(/MAIN LOG OUTPUT/) @out.should match(/CUSTOM LOG OUTPUT/) @err.should be_empty end + + it "can infer the environment" do + api_scenario "one app, one environment" + ey "logs" + @out.should match(/MAIN LOG OUTPUT/) + @out.should match(/CUSTOM LOG OUTPUT/) + @err.should be_empty + end + + it "complains when it can't infer the environment" do + api_scenario "one app, two environments" + ey "logs", :expect_failure => true + @err.should =~ /single environment/ + end end describe "ey logs ENV" do it_should_behave_like "an integration test"