Sha256: e7bec9efa04f8f095e703a201405f085e466b334d797210460055cf921b16f21
Contents?: true
Size: 419 Bytes
Versions: 115
Compression:
Stored size: 419 Bytes
Contents
require 'rails_helper' describe LHS::Data do let(:raw) do { labels: { de: ['cat', 'dog'] } } end let(:data) do LHS::Data.new(raw, nil, Record) end before(:each) do class Record < LHS::Record endpoint ':datastore/v2/data' end end context 'select' do it 'works with select' do expect( data.labels.de.select { |x| x }.join ).to eq 'catdog' end end end
Version data entries
115 entries across 115 versions & 1 rubygems