Sha256: 5059b7e866cdc9ade68d9c01acbc8d2a0e86e7609f0c21d93df3f6375f013a40
Contents?: true
Size: 387 Bytes
Versions: 1
Compression:
Stored size: 387 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation, '#last' do include_context 'Relation' context 'when limit is not provided' do it 'returns last object' do expect(relation.last.to_a).to eql([jade]) end end context 'when limit is provided' do it 'returns last n-objects' do expect(relation.last(2).to_a).to eql([jack, jade]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom-0.2.0 | spec/unit/rom/relation/last_spec.rb |