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