Sha256: 1e0667da338d145eff8ad6fcf9a6f8320649bd70256161ec9228dfcc6009d61c
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Relation::Operation::Reverse::OrderOperand, '#optimize' do subject { object.optimize } let(:base) { Relation.new([[:id, Integer]], LazyEnumerable.new([[1]])) } let(:operand) { base.sort_by { |r| r.id } } let(:relation) { operand.reverse } let(:object) { described_class.new(relation) } before do expect(object).to be_optimizable end it { should be_kind_of(Relation::Operation::Order) } its(:operand) { should be(base) } its(:directions) { should be(relation.directions) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-optimizer-0.1.1 | spec/unit/axiom/optimizer/relation/operation/reverse/order_operand/optimize_spec.rb |