Sha256: 5d2e64631358e2969b0b5efa8908d473c3161bb28cd965eee8b1996eea626fad
Contents?: true
Size: 656 Bytes
Versions: 1
Compression:
Stored size: 656 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Restriction::SortedOperand, '#optimize' do subject { object.optimize } let(:base) { Relation.new([[:id, Integer]], LazyEnumerable.new([[1]])) } let(:predicate) { base[:id].eq(1) } let(:relation) { base.sort_by { |r| r.id }.restrict { predicate } } let(:object) { described_class.new(relation) } before do expect(object).to be_optimizable end it { should be_kind_of(Algebra::Restriction) } its(:operand) { should be(base) } its(:predicate) { should be(predicate) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-optimizer-0.2.0 | spec/unit/axiom/optimizer/algebra/restriction/sorted_operand/optimize_spec.rb |