Sha256: 0edf54f7eed1a77adea2895519a221c64a487ec7f5244527afe514e11c275b58

Contents?: true

Size: 529 Bytes

Versions: 18

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

require 'rails_spec_helper'
require 'active_support/core_ext'
require 'appmap/config'

describe AppMap::Config, docker: false do
  it 'loads from a Hash' do
    config_data = {
      name: 'test',
      packages: [
        {
          path: 'path-1'
        },
        {
          path: 'path-2',
          exclude: [ 'exclude-1' ]
        }
      ]
    }.deep_stringify_keys!
    config = AppMap::Config.load(config_data)

    expect(config.to_h.deep_stringify_keys!).to eq(config_data)
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
appmap-0.40.0 spec/config_spec.rb
appmap-0.39.1 spec/config_spec.rb
appmap-0.39.0 spec/config_spec.rb
appmap-0.38.1 spec/config_spec.rb
appmap-0.37.2 spec/config_spec.rb
appmap-0.37.0 spec/config_spec.rb
appmap-0.36.0 spec/config_spec.rb
appmap-0.35.2 spec/config_spec.rb
appmap-0.35.1 spec/config_spec.rb
appmap-0.35.0 spec/config_spec.rb
appmap-0.34.5 spec/config_spec.rb
appmap-0.34.4 spec/config_spec.rb
appmap-0.34.2 spec/config_spec.rb
appmap-0.34.1 spec/config_spec.rb
appmap-0.34.0 spec/config_spec.rb
appmap-0.33.0 spec/config_spec.rb
appmap-0.32.0 spec/config_spec.rb
appmap-0.31.0 spec/config_spec.rb