Sha256: a6df7cc4a5bd79a7ce6327ee96cebfa3185da1dfddb7d94a7cb8d73ba41b4077
Contents?: true
Size: 639 Bytes
Versions: 1
Compression:
Stored size: 639 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Relation::Operation::Offset::OffsetOperand, '#optimize' do subject { object.optimize } let(:order) { Relation.new([[:id, Integer]], LazyEnumerable.new([[1]])).sort_by { |r| r.id } } let(:relation) { order.drop(1).drop(2) } let(:object) { described_class.new(relation) } before do expect(object).to be_optimizable end it { should be_kind_of(Relation::Operation::Offset) } its(:operand) { should be(order) } its(:offset) { should == 3 } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-optimizer-0.1.1 | spec/unit/axiom/optimizer/relation/operation/offset/offset_operand/optimize_spec.rb |