Sha256: 40113e5c9be90c4f0d00a0698b57c1ef1efecea5f57bc2060af5cc53f1025633
Contents?: true
Size: 515 Bytes
Versions: 13
Compression:
Stored size: 515 Bytes
Contents
module TestsHelper def expect_count_and_offset(&block) it 'returns only the number of objects specified by count' do result = block.call(count: 2) expect(result.size).to eql 2 result = block.call(count: 4) expect(result.size).to eql 4 end it 'returns objects by a specified offset' do non_offset_objects = block.call(count: 2) objects_with_offset = block.call(count: 2, offset: 2) expect(non_offset_objects).to_not eql objects_with_offset end end end
Version data entries
13 entries across 13 versions & 2 rubygems