Sha256: f1dd67ced7ae140c4b7f254f31e3efbed0f3a1f11ae608129dc5f6bb3b146ef9
Contents?: true
Size: 750 Bytes
Versions: 1
Compression:
Stored size: 750 Bytes
Contents
require 'spec_helper' describe 'Veritas::Optimizer::Relation::Operation::Order::OrderOperand#optimize' do subject { object.optimize } let(:klass) { Optimizer::Relation::Operation::Order::OrderOperand } let(:base) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ].each) } let(:order) { base.order } let(:relation) { order.order(order.directions.reverse) } let(:object) { klass.new(relation) } before do object.operation.should be_kind_of(Relation::Operation::Order) end it { should be_kind_of(Relation::Operation::Order) } its(:operand) { should equal(base) } its(:directions) { should eql(order.directions.reverse) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/optimizer/relation/operation/order/order_operand/optimize_spec.rb |