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

Version Path
lhs-14.6.5 spec/data/select_spec.rb
lhs-14.6.4 spec/data/select_spec.rb
lhs-14.6.3 spec/data/select_spec.rb
lhs-14.6.2 spec/data/select_spec.rb
lhs-14.6.1 spec/data/select_spec.rb
lhs-14.6.0 spec/data/select_spec.rb
lhs-14.5.0 spec/data/select_spec.rb
lhs-14.4.0 spec/data/select_spec.rb
lhs-14.3.4 spec/data/select_spec.rb
lhs-14.3.3 spec/data/select_spec.rb
lhs-14.3.2 spec/data/select_spec.rb
lhs-14.3.1 spec/data/select_spec.rb
lhs-14.3.0 spec/data/select_spec.rb
lhs-14.2.0 spec/data/select_spec.rb
lhs-14.1.1 spec/data/select_spec.rb
lhs-14.1.0 spec/data/select_spec.rb
lhs-14.0.3 spec/data/select_spec.rb
lhs-14.0.2 spec/data/select_spec.rb
lhs-14.0.1 spec/data/select_spec.rb
lhs-14.0.0 spec/data/select_spec.rb