spec/lib/cli_spec.rb in jack-eb-1.0.1 vs spec/lib/cli_spec.rb in jack-eb-1.1.0

- old
+ new

@@ -1,10 +1,10 @@ require 'spec_helper' describe Jack::CLI do before(:all) do - @args = "hi-web-stag-1 --root spec/fixtures/project --noop --force" + @args = "hi-web-stag-1 --root spec/fixtures/project --noop --sure" FileUtils.rm_rf("spec/fixtures/project/.elasticbeanstalk") end describe "jack" do it "should create environment" do @@ -17,11 +17,11 @@ end it "should upload and apply config to environment" do out = execute("bin/jack config upload #{@args}") # puts out - expect(out).to include('eb config put') + expect(out).to include('eb config save') end it "should download config from environment" do out = execute("bin/jack config download #{@args}") # puts out @@ -29,15 +29,21 @@ end it "should diff local config from eb environment config" do out = execute("bin/jack config diff #{@args}") # puts out - expect(out).to include("Comparing") + expect(out).to include("diff") end it "should reformat the local config to a sorted yaml format" do out = execute("bin/jack config sort #{@args}") # puts out expect(out).to include("Reformatted the local config") + end + + it "should terminate enviornment" do + out = execute("bin/jack terminate #{@args}") + # puts out + expect(out).to include("Whew that was close") end end end