Sha256: 411fc84cbad9578eae8cbf7312d3b1c966663a01c386afac2a8f0e11df5dce45

Contents?: true

Size: 827 Bytes

Versions: 17

Compression:

Stored size: 827 Bytes

Contents

# frozen_string_literal: true

require 'avm/patches/eac_config/entry_path'

RSpec.describe EacConfig::EntryPath do
  {
    'install.path' => {
      auto: 'auto_install_path',
      default: 'install_path_default_value',
      get: 'install_path',
      get_optional: 'install_path_optional',
      inherited_block: 'install_path_inherited_value_proc'
    }
  }.each do |instance_path, test_data|
    context "when path is \"#{instance_path}\"" do
      let(:instance) { described_class.assert(instance_path) }

      test_data.each do |method_prefix, expected_value|
        method_name = "#{method_prefix}_method_name"
        context "when method name is \"#{method_name}\"" do
          it do
            expect(instance.send(method_name)).to eq(expected_value.to_sym)
          end
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
eac_tools-0.94.0 sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb
eac_tools-0.92.0 sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb
eac_tools-0.91.0 sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb
eac_tools-0.87.1 sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb
eac_tools-0.87.0 sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb
eac_tools-0.86.12 sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb
eac_tools-0.86.11 sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb
eac_tools-0.86.8 sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb
eac_tools-0.86.7 sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb
eac_tools-0.86.5 sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb
eac_tools-0.86.4 sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb
eac_tools-0.86.3 sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb
eac_tools-0.86.2 sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb
eac_tools-0.86.1 sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb
eac_tools-0.84.2 sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb
eac_tools-0.84.1 sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb
eac_tools-0.84.0 sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb