Sha256: a961e84bd4445c2cb6d2d8b6d70b7691eadcf70702ec68aab5381b09ade24009
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Relation::Operation::Offset::UnoptimizedOperand, '#optimize' do subject { object.optimize } let(:header) { Relation::Header.new([ [ :id, Integer ] ]) } let(:order) { Relation.new(header, [ [ 1 ] ].each).order } let(:relation) { order.rename({}).drop(1) } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should be_kind_of(Relation::Operation::Offset) } its(:operand) { should equal(order) } its(:offset) { should == 1 } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-optimizer-0.0.4 | spec/unit/veritas/optimizer/relation/operation/offset/unoptimized_operand/optimize_spec.rb |