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