Sha256: 14d62d0972fa36e27d0ff5517009300404851545faa9af3cc43f1347fd740711
Contents?: true
Size: 612 Bytes
Versions: 3
Compression:
Stored size: 612 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Summarization::OrderOperand, '#optimize' do subject { object.optimize } let(:base) { Relation.new([ [ :id, Integer ] ], [].each) } let(:operand) { base.sort_by { |r| r.id } } let(:relation) { operand.summarize([]) {} } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should be_kind_of(Algebra::Summarization) } its(:operand) { should equal(base) } its(:summarizers) { should eql(relation.summarizers) } end
Version data entries
3 entries across 3 versions & 1 rubygems