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