Sha256: 908b9c452c3b466a8f6e2ed6ddb1fe8263d2646adab1f95053f2e3f3465f23bf
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
require 'spec_helper' describe "ey environments" do given "integration" before(:all) do api_scenario "one app, many environments" end it "lists the environments your app is in" do ey "environments" @out.should =~ /giblets/ @out.should =~ /bakon/ end it "reports failure to find a git repo when not in one" do Dir.chdir("/tmp") do ey "environments", :expect_failure => true @err.should =~ /fatal: No git remotes found in .*\/tmp/ @out.should_not =~ /no application configured/ end end it "lists all environments that have apps with -a" do ey "environments -a" @out.should include("bakon") @out.should include("giblets") end it "outputs simply with -s" do ey "environments -s", :debug => false @out.split(/\n/).sort.should == ["bakon", "giblets"] end it "outputs all environments (including ones with no apps) simply with -a and -s" do ey "environments -a -s", :debug => false @out.split(/\n/).sort.should == ["bakon", "beef", "giblets"] end end describe "ey environments with an ambiguous git repo" do given "integration" def command_to_run(_) "ssh environments" end it_should_behave_like "it requires an unambiguous git repo" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
engineyard-1.2.2 | spec/ey/list_environments_spec.rb |