Sha256: a40d0cd989fee65cb2ed8d85dc98d84ccd4417c00966e8cce9f5345670387922
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Relation::Operation::Limit::UnoptimizedOperand, '#optimize' do subject { object.optimize } let(:header) { Relation::Header.coerce([[:id, Integer]]) } let(:order) { Relation.new(header, LazyEnumerable.new([[1]])).sort_by { |r| r.id } } let(:relation) { order.rename({}).take(1) } let(:object) { described_class.new(relation) } before do expect(object).to be_optimizable end it { should be_kind_of(Relation::Operation::Limit) } its(:operand) { should be(order) } its(:limit) { should == 1 } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-optimizer-0.1.1 | spec/unit/axiom/optimizer/relation/operation/limit/unoptimized_operand/optimize_spec.rb |