Sha256: 2367808aef0506ab942ba2539e1564e47d3f297221e9601d1aa5070314ba7d4d
Contents?: true
Size: 1.34 KB
Versions: 16
Compression:
Stored size: 1.34 KB
Contents
require 'spec_helper' describe Jack::CLI do before(:all) do @args = "stag-rails-app-s9 --root spec/fixtures/project --noop --force" FileUtils.rm_rf("spec/fixtures/project/.elasticbeanstalk") end describe "jack" do it "should create environment" do out = execute("bin/jack create #{@args}") # puts out expect(out).to include('eb create') expect(out).to include('--cname stag-rails-app-s9') expect(out).to include('--keyname "default"') expect(out).to include('--cfg stag-rails-app') expect(out).to include('stag-rails-app-s9') 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') end it "should download config from environment" do out = execute("bin/jack config download #{@args}") # puts out expect(out).to include("Config downloaded") 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") 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 end end
Version data entries
16 entries across 16 versions & 1 rubygems