Sha256: 70f2100480e9ff520ca8ce908fce9469d8f7bc5ba5998543008937e1078f8508
Contents?: true
Size: 623 Bytes
Versions: 254
Compression:
Stored size: 623 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/arguments_consumer' RSpec.describe ::EacRubyUtils::ArgumentsConsumer do let(:instance) { described_class.new(%i[a b c d], d: 'd_value') } let(:args) { ['a_value', 'b_value', e: 'e_value'] } let(:result) { instance.parse(args) } it { expect(result).to be_a(::Hash) } it { expect(result.count).to eq(5) } it { expect(result.fetch(:a)).to eq('a_value') } it { expect(result.fetch(:b)).to eq('b_value') } it { expect(result.fetch(:c)).to eq(nil) } it { expect(result.fetch(:d)).to eq('d_value') } it { expect(result.fetch(:e)).to eq('e_value') } end
Version data entries
254 entries across 254 versions & 3 rubygems