Sha256: f76db335240476b787e28b368a70978f11406fd6089c58d13c0da9299c6c7ed6
Contents?: true
Size: 427 Bytes
Versions: 32
Compression:
Stored size: 427 Bytes
Contents
require 'rails_helper' describe LHS::Item do before(:each) do class Record < LHS::Record endpoint ':datastore/records' end end let(:json) do { local_entry: { local_entry_id: 'ABC123' } } end let(:item) do LHS::Data.new(json, nil, Record) end it 'is possible to dig data' do expect( item.dig(:local_entry, :local_entry_id) ).to eq 'ABC123' end end
Version data entries
32 entries across 32 versions & 1 rubygems