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