Sha256: 9a54a65bac59462153cc1ab3a5097e1271737dcccf5f109918a7234ad4afa6a4
Contents?: true
Size: 605 Bytes
Versions: 1
Compression:
Stored size: 605 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Relation::Operation::Limit::ZeroLimit, '#optimize' do subject { object.optimize } let(:header) { Relation::Header.new([ [ :id, Integer ] ]) } let(:order) { Relation.new(header, [ [ 1 ] ].each).sort_by { |r| r.id } } let(:relation) { order.take(0) } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should be_kind_of(Relation::Empty) } its(:header) { should equal(header) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-optimizer-0.0.5 | spec/unit/veritas/optimizer/relation/operation/limit/zero_limit/optimize_spec.rb |