Sha256: 8eef0a3175e9a374479a8ccd0e60667a38dce49ab6178ab181e9dea7a62d55bc

Contents?: true

Size: 668 Bytes

Versions: 27

Compression:

Stored size: 668 Bytes

Contents

require 'spec_helper'

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

  def mock
    {environments: [OpenStruct.new(
      application_name: "myapp", 
      solution_stack_name: "my solution stack")]}
  end

  let(:update) { 
    Jack::EbConfig::Update.new(test_options)
  }

  describe "update" do
    it "sync config" do
      expect(update).to receive(:describe_environments).and_return(mock)
      update.sync

      data = YAML.load_file(update.eb_config_path)
      global = data['global']
      expect(global['application_name']).to eq "myapp"
      expect(global['default_platform']).to eq "my solution stack"
    end

  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
jack-eb-1.4.4 spec/lib/eb_config/update_spec.rb
jack-eb-1.4.3 spec/lib/eb_config/update_spec.rb
jack-eb-1.4.2 spec/lib/eb_config/update_spec.rb
jack-eb-1.4.1 spec/lib/eb_config/update_spec.rb
jack-eb-1.4.0 spec/lib/eb_config/update_spec.rb
jack-eb-1.3.0 spec/lib/eb_config/update_spec.rb
jack-eb-1.2.1 spec/lib/eb_config/update_spec.rb
jack-eb-1.2.0 spec/lib/eb_config/update_spec.rb
jack-eb-1.1.2 spec/lib/eb_config/update_spec.rb
jack-eb-1.1.1 spec/lib/eb_config/update_spec.rb
jack-eb-1.1.0 spec/lib/eb_config/update_spec.rb
jack-eb-1.0.1 spec/lib/eb_config/update_spec.rb
jack-eb-1.0.0 spec/lib/eb_config/update_spec.rb
jack-eb-0.3.0 spec/lib/eb_config/update_spec.rb
jack-eb-0.2.0 spec/lib/eb_config/update_spec.rb
jack-eb-0.1.6 spec/lib/eb_config/update_spec.rb
jack-eb-0.1.5 spec/lib/eb_config/update_spec.rb
jack-eb-0.1.4 spec/lib/eb_config/update_spec.rb
jack-eb-0.1.3 spec/lib/eb_config/update_spec.rb
jack-eb-0.1.2 spec/lib/eb_config/update_spec.rb