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
avm-0.80.0 lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.78.0 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.77.1 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.77.0 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.76.1 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.76.0 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.75.2 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.75.1 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.75.0 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.74.1 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.74.0 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
avm-0.79.0 lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.73.0 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.72.0 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
avm-0.78.0 lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.70.1 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
avm-0.77.0 lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.70.0 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
avm-0.76.0 lib/avm/rspec/shared_examples/entries_values.rb
eac_tools-0.69.1 sub/avm/lib/avm/rspec/shared_examples/entries_values.rb