Sha256: 1bf11a657520177ff38f9aba4306d339012782c8072c3a001cbe8b474909148b
Contents?: true
Size: 683 Bytes
Versions: 1
Compression:
Stored size: 683 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Relation::Operation::Binary::SortedRight, '#optimize' do subject { object.optimize } let(:base) { Relation.new([[:id, Integer]], LazyEnumerable.new) } let(:left) { base } let(:right) { base.sort_by { |r| r.id } } let(:relation) { left.union(right) } let(:object) { described_class.new(relation) } before do expect(object).to be_optimizable end it { should be_kind_of(relation.class) } its(:left) { should be(left) } its(:right) { should be(base) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-optimizer-0.2.0 | spec/unit/axiom/optimizer/relation/operation/binary/sorted_right/optimize_spec.rb |