Sha256: bf23e78a06a58db07fecf6b6a7e0decb1a0eeb7ec8c7bf12a796e75494886f58

Contents?: true

Size: 305 Bytes

Versions: 12

Compression:

Stored size: 305 Bytes

Contents

require 'rails_helper'

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

  let(:data) do
    LHS::Data.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

12 entries across 12 versions & 1 rubygems

Version Path
lhs-3.3.6 spec/data/select_spec.rb
lhs-3.3.5 spec/data/select_spec.rb
lhs-3.3.3 spec/data/select_spec.rb
lhs-3.3.2 spec/data/select_spec.rb
lhs-3.3.1 spec/data/select_spec.rb
lhs-3.3.0 spec/data/select_spec.rb
lhs-3.2.0 spec/data/select_spec.rb
lhs-3.1.3 spec/data/select_spec.rb
lhs-3.1.1 spec/data/select_spec.rb
lhs-3.1.0 spec/data/select_spec.rb
lhs-3.0.5 spec/data/select_spec.rb
lhs-3.0.4 spec/data/select_spec.rb