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

Version Path
jack-eb-0.2.0 spec/lib/cli_spec.rb
jack-eb-0.1.6 spec/lib/cli_spec.rb
jack-eb-0.1.5 spec/lib/cli_spec.rb
jack-eb-0.1.4 spec/lib/cli_spec.rb
jack-eb-0.1.3 spec/lib/cli_spec.rb
jack-eb-0.1.2 spec/lib/cli_spec.rb
jack-eb-0.1.1 spec/lib/cli_spec.rb
jack-eb-0.1.0 spec/lib/cli_spec.rb
jack-eb-0.0.9 spec/lib/cli_spec.rb
jack-eb-0.0.8 spec/lib/cli_spec.rb
jack-eb-0.0.7 spec/lib/cli_spec.rb
jack-eb-0.0.6 spec/lib/cli_spec.rb
jack-eb-0.0.4 spec/lib/cli_spec.rb
jack-eb-0.0.3 spec/lib/cli_spec.rb
jack-eb-0.0.2 spec/lib/cli_spec.rb
jack-eb-0.0.1 spec/lib/cli_spec.rb