Sha256: c6a2f3365a4a0ddb1aed689ca64a9c5a793b112f5cf19b211b87ea05201f4d9e
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Relation::Operation::Binary::LeftOrderOperand, '#optimizable?' do subject { object.optimizable? } let(:relation) { mock('Relation', :left => left, :right => right) } let(:right) { mock('Right') } let(:object) { described_class.new(relation) } context 'when left is an order' do let(:left) { Relation.new([ [ :id, Integer ] ], [].each).order } it { should be(true) } end context 'when left is not an order' do let(:left) { Relation.new([ [ :id, Integer ] ], [].each) } it { should be(false) } end 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/left_order_operand/optimizable_spec.rb |