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-11.2.1 spec/data/select_spec.rb
lhs-11.2.0 spec/data/select_spec.rb
lhs-11.1.0 spec/data/select_spec.rb
lhs-11.0.3 spec/data/select_spec.rb
lhs-11.0.2 spec/data/select_spec.rb
lhs-11.0.1 spec/data/select_spec.rb
lhs-11.0.0 spec/data/select_spec.rb
lhs-10.1.1 spec/data/select_spec.rb
lhs-10.1.0 spec/data/select_spec.rb
lhs-10.0.0 spec/data/select_spec.rb
lhs-9.1.1 spec/data/select_spec.rb
lhs-9.1.0 spec/data/select_spec.rb
lhs-9.0.4 spec/data/select_spec.rb
lhs-9.0.3 spec/data/select_spec.rb
lhs-9.0.2 spec/data/select_spec.rb
lhs-9.0.1 spec/data/select_spec.rb
lhs-9.0.0 spec/data/select_spec.rb
lhs-8.0.0 spec/data/select_spec.rb
lhs-7.4.1 spec/data/select_spec.rb
lhs-7.4.0 spec/data/select_spec.rb