Sha256: 2a596b90cbc178f32a72295b5b95f7b96eb5319e7228a97382d7303bae6274aa
Contents?: true
Size: 651 Bytes
Versions: 1
Compression:
Stored size: 651 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Relation::Operation::Order::OrderOperand, '#optimize' do subject { object.optimize } let(:base) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ].each) } let(:order) { base.order } let(:relation) { order.order { |order| order.directions.reverse } } let(:object) { described_class.new(relation) } before do object.should be_optimizable 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-optimizer-0.0.4 | spec/unit/veritas/optimizer/relation/operation/order/order_operand/optimize_spec.rb |