spec/ey/logs_spec.rb in engineyard-1.3.1 vs spec/ey/logs_spec.rb in engineyard-1.3.2
- old
+ new
@@ -12,24 +12,25 @@
end
it "complains when it can't infer the environment" do
api_scenario "one app, many environments"
ey "logs", :expect_failure => true
- @err.should =~ /single environment/
+ @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[:env]}" if opts[:env]
+ 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
- it_should_behave_like "it takes an environment name"
+ it_should_behave_like "it takes an environment name and an account name"
end