Sha256: 349ff2bb00da6f9cb6b6bd97a3f4cc931e65e1777f3762c1ab0a8481bf871fc7

Contents?: true

Size: 311 Bytes

Versions: 3

Compression:

Stored size: 311 Bytes

Contents

require 'rails_helper'

describe LHS::Data do
  let(:raw) do
    { labels: { de: ['cat', 'dog'] } }
  end

  let(:data) do
    described_class.new(raw)
  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

3 entries across 3 versions & 1 rubygems

Version Path
lhs-3.0.3 spec/data/select_spec.rb
lhs-3.0.2 spec/data/select_spec.rb
lhs-3.0.1 spec/data/select_spec.rb