Sha256: ca54d3e3ba8bc0c089b8fc80843cbb81c93c3d605f20794746a5decba99d3e5a

Contents?: true

Size: 268 Bytes

Versions: 162

Compression:

Stored size: 268 Bytes

Contents

require 'rails_helper'

describe LHS::Record do
  let(:record) do
    LHS::Record.new(LHS::Data.new(['cat', 'dog']))
  end

  context 'select' do
    it 'works with select' do
      expect(
        record.select { |x| x }.join
      ).to eq 'catdog'
    end
  end
end

Version data entries

162 entries across 162 versions & 1 rubygems

Version Path
lhs-16.1.5 spec/record/select_spec.rb
lhs-16.1.4 spec/record/select_spec.rb
lhs-16.1.3 spec/record/select_spec.rb
lhs-16.1.2 spec/record/select_spec.rb
lhs-16.1.1 spec/record/select_spec.rb
lhs-16.1.0 spec/record/select_spec.rb
lhs-16.0.1 spec/record/select_spec.rb
lhs-16.0.0 spec/record/select_spec.rb
lhs-15.7.0 spec/record/select_spec.rb
lhs-15.6.1 spec/record/select_spec.rb
lhs-15.6.0 spec/record/select_spec.rb
lhs-15.5.1 spec/record/select_spec.rb
lhs-15.5.0 spec/record/select_spec.rb
lhs-15.4.1 spec/record/select_spec.rb
lhs-15.4.0 spec/record/select_spec.rb
lhs-15.4.0.pre.hasone.1 spec/record/select_spec.rb
lhs-15.3.3 spec/record/select_spec.rb
lhs-15.3.3.pre.fixoptions.1 spec/record/select_spec.rb
lhs-15.3.2 spec/record/select_spec.rb
lhs-15.3.1 spec/record/select_spec.rb