Sha256: 5b96a19c7651c46a59d1633ede95f134b24e497d6f85a0c0811ab91c5b12c0ed

Contents?: true

Size: 296 Bytes

Versions: 12

Compression:

Stored size: 296 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

describe DHS::Record do
  let(:record) do
    DHS::Record.new(DHS::Data.new(%w[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

12 entries across 12 versions & 1 rubygems

Version Path
dhs-1.6.0 spec/record/select_spec.rb
dhs-1.5.0 spec/record/select_spec.rb
dhs-1.4.2 spec/record/select_spec.rb
dhs-1.4.1 spec/record/select_spec.rb
dhs-1.4.0 spec/record/select_spec.rb
dhs-1.3.0 spec/record/select_spec.rb
dhs-1.2.0 spec/record/select_spec.rb
dhs-1.1.0 spec/record/select_spec.rb
dhs-1.0.3 spec/record/select_spec.rb
dhs-1.0.2 spec/record/select_spec.rb
dhs-1.0.1 spec/record/select_spec.rb
dhs-1.0.0 spec/record/select_spec.rb