Sha256: 20c414fb179dd00b9485ddfa158d6fca561dea1142eff70a41f9798a27ed8c56

Contents?: true

Size: 200 Bytes

Versions: 4

Compression:

Stored size: 200 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Relation, '#take' do
  include_context 'Relation'

  it 'returns first n-tuples' do
    expect(relation.take(2).to_a).to eql([john, jane])
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
rom-0.2.0 spec/unit/rom/relation/take_spec.rb
rom-relation-0.1.2 spec/unit/rom/relation/take_spec.rb
rom-relation-0.1.1 spec/unit/rom/relation/take_spec.rb
rom-relation-0.1.0 spec/unit/rom/relation/take_spec.rb