Sha256: 6d1d071362d118e0659cbbfc58be80b7e5b630c3c4013f7fe2576fbfeff41beb
Contents?: true
Size: 410 Bytes
Versions: 9
Compression:
Stored size: 410 Bytes
Contents
require 'rails_helper' describe LHS::Collection do let(:data) { [1, 2, 3] } let(:collection){ described_class.new(LHS::Data.new(data)) } 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
9 entries across 9 versions & 1 rubygems