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