Sha256: 05e1bd660e0e544327f4df7e1489c30842034e0be0b87b5a4c3c08690234de4d
Contents?: true
Size: 421 Bytes
Versions: 114
Compression:
Stored size: 421 Bytes
Contents
require 'rails_helper' describe LHS::Collection do let(:data) do [1, 2, 3] end let(:collection) do LHS::Collection.new(LHS::Data.new(data)) end context 'enumerable' do it 'works with map' do expect( collection.map { |x| x + 1 } ).to eq [2, 3, 4] end it 'works with select' do expect( collection.select { |x| x == 2 } ).to eq [2] end end end
Version data entries
114 entries across 114 versions & 1 rubygems