Sha256: d718a593b18b271fa61db6b8f59d4be1548a8f1b84425e7ca9a1deb8e719be93
Contents?: true
Size: 619 Bytes
Versions: 1
Compression:
Stored size: 619 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation, '#materialize' do subject { object.materialize } let(:header) { Relation::Header.coerce([ [ :id, Integer ] ]) } let(:object) { described_class.new(header, LazyEnumerable.new([ [ 1 ] ])).sort_by { |r| r.id } } before do object.should be_kind_of(described_class) end it { should be_instance_of(Relation::Materialized) } its(:header) { should equal(header) } its(:directions) { should == header } it 'returns an equivalent relation to the unmaterialized operation' do should == object end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/relation/materialize_spec.rb |