Sha256: 687d61417ca96fc369c24cbb7744d778d3803720c2d01149be31822c24cbb8a0
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Restriction::OrderOperand, '#optimize' do subject { object.optimize } let(:base) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ].each) } let(:predicate) { base[:id].eq(1) } let(:relation) { base.order.restrict { predicate } } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should be_kind_of(Algebra::Restriction) } its(:operand) { should equal(base) } its(:predicate) { should equal(predicate) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-optimizer-0.0.4 | spec/unit/veritas/optimizer/algebra/restriction/order_operand/optimize_spec.rb |