Sha256: cdd1a0ad56f49227f616d79a6138bf3cf7ce61e5a7c12158366c4eea4f7afbfe

Contents?: true

Size: 711 Bytes

Versions: 2

Compression:

Stored size: 711 Bytes

Contents

require 'spec_helper'

describe 'Veritas::Optimizer::Logic::Connective::Binary#left' do
  subject { object.left }

  let(:klass)           { Optimizer::Logic::Connective::Binary               }
  let(:optimized_left)  { mock('Optimized Left')                             }
  let(:optimized_right) { mock('Optimized Right')                            }
  let(:left)            { mock('Left',  :optimize => optimized_left)         }
  let(:right)           { mock('Right', :optimize => optimized_right)        }
  let(:connective)      { mock('Connective', :left => left, :right => right) }
  let(:object)          { klass.new(connective)                              }

  it { should equal(optimized_left) }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/unit/veritas/optimizer/logic/connective/binary/left_spec.rb
veritas-0.0.1 spec/unit/veritas/optimizer/logic/connective/binary/left_spec.rb