Sha256: 20a7864e0eb8c4f2134325ddb2c689949d7abe107cdde4f1c2fbee61e885f05a

Contents?: true

Size: 524 Bytes

Versions: 7

Compression:

Stored size: 524 Bytes

Contents

# frozen_string_literal: true

require 'rails_spec_helper'
require 'active_support/core_ext'
require 'appmap/hook'

describe AppMap::Hook::Config 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::Hook::Config.load(config_data)

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
appmap-0.28.1 spec/config_spec.rb
appmap-0.28.0 spec/config_spec.rb
appmap-0.27.0 spec/config_spec.rb
appmap-0.26.1 spec/config_spec.rb
appmap-0.26.0 spec/config_spec.rb
appmap-0.25.2 spec/config_spec.rb
appmap-0.25.0 spec/config_spec.rb