Sha256: 08b87c449dfd06d20e22c3c06d6043d6b51bfddb330b348e479204b7b8a369d3
Contents?: true
Size: 748 Bytes
Versions: 1
Compression:
Stored size: 748 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation::Materialized, '#directions' do subject { object.directions } let(:header) { Relation::Header.coerce([ [ :id, Integer ] ]) } let(:tuples) { LazyEnumerable.new } context 'with directions' do let(:object) { described_class.new(header, tuples, directions) } let(:directions) { [ header[:id] ] } it_should_behave_like 'an idempotent method' it { should == directions } end context 'with no directions' do let(:object) { described_class.new(header, tuples) } it_should_behave_like 'an idempotent method' it { should equal(Relation::Operation::Order::DirectionSet::EMPTY) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/relation/materialized/directions_spec.rb |