spec/ey/logs_spec.rb in engineyard-1.3.15 vs spec/ey/logs_spec.rb in engineyard-1.3.16

- old
+ new

@@ -3,29 +3,29 @@ describe "ey logs" do given "integration" it "prints logs returned by awsm" do api_scenario "one app, one environment" - ey "logs -e giblets" + ey %w[logs -e giblets] @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, many environments" - ey "logs", :expect_failure => true + ey %w[logs], :expect_failure => true @err.should =~ /repository url in this directory is ambiguous/i end end describe "ey logs" do given "integration" def command_to_run(opts) - cmd = "logs" - cmd << " --environment #{opts[:environment]}" if opts[:environment] - cmd << " --account #{opts[:account]}" if opts[:account] + cmd = ["logs"] + cmd << "--environment" << opts[:environment] if opts[:environment] + cmd << "--account" << opts[:account] if opts[:account] cmd end def verify_ran(scenario) @out.should match(/Main logs for #{scenario[:environment]}/)