Sha256: 4552d7318efbf3af0271e4f394b1c7f0d683101502a4a9e5212a92eda6905eb9

Contents?: true

Size: 421 Bytes

Versions: 16

Compression:

Stored size: 421 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

16 entries across 16 versions & 1 rubygems

Version Path
lhs-15.3.1 spec/data/select_spec.rb
lhs-15.3.1.pre.fixlhc.1 spec/data/select_spec.rb
lhs-15.3.0 spec/data/select_spec.rb
lhs-15.2.5 spec/data/select_spec.rb
lhs-15.2.4 spec/data/select_spec.rb
lhs-15.2.3 spec/data/select_spec.rb
lhs-15.2.3.pre.favorites.1 spec/data/select_spec.rb
lhs-15.2.2.pre.favorites.1 spec/data/select_spec.rb
lhs-15.2.2 spec/data/select_spec.rb
lhs-15.2.1 spec/data/select_spec.rb
lhs-15.2.0 spec/data/select_spec.rb
lhs-15.1.1 spec/data/select_spec.rb
lhs-15.1.0 spec/data/select_spec.rb
lhs-15.0.2 spec/data/select_spec.rb
lhs-15.0.1 spec/data/select_spec.rb
lhs-15.0.0 spec/data/select_spec.rb