Sha256: 1fc531225acaf5f46c2224ab0f378e6cdadbb7805b6cc7e4d3430b2558e95695
Contents?: true
Size: 831 Bytes
Versions: 5
Compression:
Stored size: 831 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
5 entries across 5 versions & 1 rubygems