Sha256: 4768b3e145ac1017e54ff83939ea930820510169743b6ec44a97664097a9e574

Contents?: true

Size: 1.25 KB

Versions: 12

Compression:

Stored size: 1.25 KB

Contents

require 'spec_helper'

describe Jack::EbConfig do
  before(:all) do
    Jack::UI.mute = true
    fake_eb_config
  end

  def solution_stacks
    ["64bit Amazon Linux 2014.09 v1.2.0 running Docker 1.3.3", "64bit Amazon Linux 2014.03 v1.0.0 running Docker 1.0.0", "64bit Amazon Linux 2014.03 v1.0.1 running Docker 1.0.0", "64bit Amazon Linux 2014.03 v1.0.4 running Docker 0.9.0", "64bit Amazon Linux 2014.03 v1.0.5 running Docker 0.9.0", "64bit Debian jessie v1.2.0 running Go 1.3 (Preconfigured - Docker)", "64bit Debian jessie v1.2.0 running Go 1.4 (Preconfigured - Docker)"]
  end

  let(:create) { 
    Jack::EbConfig::Create.new(test_options)
  }

  describe "create" do
    it "sync config" do
      expect(create).to receive(:solution_stacks).and_return(solution_stacks)
      create.sync

      data = YAML.load_file(create.eb_config_path)
      global = data['global']
      expect(global['application_name']).to eq "rails"
      expect(global['default_platform']).to eq "64bit Amazon Linux 2014.09 v1.2.0 running Docker 1.3.3"
    end

    it "list solution stacks" do
      expect(create).to receive(:solution_stacks).and_return(solution_stacks)
      expect(create.latest_docker_platform).to eq "64bit Amazon Linux 2014.09 v1.2.0 running Docker 1.3.3"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
jack-eb-0.1.6 spec/lib/eb_config/create_spec.rb
jack-eb-0.1.5 spec/lib/eb_config/create_spec.rb
jack-eb-0.1.4 spec/lib/eb_config/create_spec.rb
jack-eb-0.1.3 spec/lib/eb_config/create_spec.rb
jack-eb-0.1.2 spec/lib/eb_config/create_spec.rb
jack-eb-0.1.1 spec/lib/eb_config/create_spec.rb
jack-eb-0.1.0 spec/lib/eb_config/create_spec.rb
jack-eb-0.0.9 spec/lib/eb_config/create_spec.rb
jack-eb-0.0.8 spec/lib/eb_config/create_spec.rb
jack-eb-0.0.7 spec/lib/eb_config/create_spec.rb
jack-eb-0.0.6 spec/lib/eb_config/create_spec.rb
jack-eb-0.0.4 spec/lib/eb_config/create_spec.rb