Sha256: d23572093a484951c96846bf11e25e177e6abf42fc305b5d41dca88348454c08
Contents?: true
Size: 832 Bytes
Versions: 1
Compression:
Stored size: 832 Bytes
Contents
require 'spec_helper' describe 'Veritas::Algebra::Projection#directions' do subject { object.directions } let(:klass) { Algebra::Projection } let(:relation) { Relation.new([ [ :id, Integer ], [ :name, String ] ], [ [ 1, 'Dan Kubb' ] ]) } let(:object) { klass.new(operand, [ :id ]) } context 'containing an unordered relation' do let(:operand) { relation } it_should_behave_like 'an idempotent method' it { should equal(Relation::Operation::Order::DirectionSet::EMPTY) } end context 'containing an ordered relation' do let(:operand) { relation.order } 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 |
---|---|
veritas-0.0.2 | spec/unit/veritas/algebra/projection/directions_spec.rb |