Sha256: 69969a62a69a2ff42e47f54c6ea1e6d6dff328dd4ddca035e866a908c2e79cb1
Contents?: true
Size: 937 Bytes
Versions: 37
Compression:
Stored size: 937 Bytes
Contents
require 'spec_helper' describe "ey logs" do given "integration" it "prints logs returned by awsm" do login_scenario "one app, one environment" fast_ey %w[logs -e giblets] @out.should match(/MAIN LOG OUTPUT/) @out.should match(/CUSTOM LOG OUTPUT/) @err.should == '' end it "complains when it can't infer the environment" do login_scenario "one app, many environments" fast_failing_ey %w[logs] @err.should =~ /Multiple environments possible, please be more specific/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 end def verify_ran(scenario) @out.should match(/Main logs for #{scenario[:environment]}/) end include_examples "it takes an environment name and an account name" end
Version data entries
37 entries across 37 versions & 1 rubygems