Sha256: fd0b053a3be58b5f82f56e2cfb131fd49957cfe2b35290e88d8d061eb523401e

Contents?: true

Size: 799 Bytes

Versions: 118

Compression:

Stored size: 799 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

::RSpec.shared_examples 'entries_values' do |spec_file, expected_values|
  describe '#read_entry' do
    config_path = spec_file.to_pathname
    config_path = config_path.dirname.join("#{config_path.basename_noext}_files", 'config.yml')
    ::EacRubyUtils::Rspec.default_setup.stub_eac_config_node(self, config_path)

    expected_values.each do |instance_id, values|
      values.each do |input, expected|
        context "when a auto value is requested for \"#{instance_id}.#{input}\"" do
          let(:instance) { described_class.by_id(instance_id) }

          it ".read_entry should return \"#{expected}\"" do
            expect(instance.read_entry(input)).to eq(expected)
          end
        end
      end
    end
  end
end

Version data entries

118 entries across 118 versions & 2 rubygems

Version Path
eac_tools-0.61.1 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.61.0 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
avm-0.67.1 lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.60.3 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.60.2 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
avm-0.67.0 lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.60.1 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.60.0 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.59.0 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
avm-0.66.1 lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.58.0 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.57.0 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.56.1 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
avm-0.66.0 lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.56.0 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
avm-0.65.0 lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.55.7 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
avm-0.64.2 lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.55.6 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
avm-0.64.1 lib/avm/rspec/shared_examples/entries_values.rb