Sha256: 2d03217939d68e19273b629179cee9aa5eee564533504e8f67f57ba1db89d628

Contents?: true

Size: 268 Bytes

Versions: 2

Compression:

Stored size: 268 Bytes

Contents

# frozen_string_literal: true

RSpec.describe MessagesDictionary::Utils::Dict do
  let(:dummy) { described_class.new key: 'value' }

  it 'allows indifferent access' do
    expect(dummy[:key]).to eq('value')
    expect(dummy['key']).to eq('value')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
messages_dictionary-2.1.0 spec/lib/messages_dictionary/utils/dict_spec.rb
messages_dictionary-2.0.0 spec/lib/messages_dictionary/utils/dict_spec.rb