Sha256: 1ea9168b8d8ca73dfefd49d8f68e0c590fbe207386e83c28137e060cbe6cdab7
Contents?: true
Size: 656 Bytes
Versions: 1
Compression:
Stored size: 656 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Relation::Operation::Binary::RightOrderOperand, '#optimize' do subject { object.optimize } let(:base) { Relation.new([ [ :id, Integer ] ], [].each) } let(:left) { base } let(:right) { base.order } let(:relation) { left.union(right) } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should be_kind_of(relation.class) } its(:left) { should equal(left) } its(:right) { should equal(base) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-optimizer-0.0.4 | spec/unit/veritas/optimizer/relation/operation/binary/right_order_operand/optimize_spec.rb |