Sha256: 5babfe91126a99f3f25583fc7bafe9c847942a2ce45eb0b8989a34048cc11d6a
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Summarization::OrderOperand, '#optimizable?' do subject { object.optimizable? } let(:base) { Relation.new([ [ :id, Integer ] ], [].each) } let(:relation) { operand.summarize([]) {} } let(:object) { described_class.new(relation) } context 'when operand is an order' do let(:operand) { base.order } it { should be(true) } end context 'when operand is not an order' do let(:operand) { base } it { should be(false) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-optimizer-0.0.4 | spec/unit/veritas/optimizer/algebra/summarization/order_operand/optimizable_spec.rb |