Sha256: 4bcccc90a46f7353466bf71b1d9328e3ebacccbe8b744e284aaad35ab6ee89a1

Contents?: true

Size: 768 Bytes

Versions: 1

Compression:

Stored size: 768 Bytes

Contents

require 'spec_helper'

describe 'Veritas::Optimizer::Logic::Connective::Disjunction::FalseLeftOperand#optimize' do
  subject { object.optimize }

  let(:klass)      { Optimizer::Logic::Connective::Disjunction::FalseLeftOperand }
  let(:attribute)  { Attribute::Integer.new(:id)                                 }
  let(:left)       { Logic::Proposition::False.instance                          }
  let(:right)      { attribute.eq(1)                                             }
  let(:connective) { Logic::Connective::Disjunction.new(left, right)             }
  let(:object)     { klass.new(connective)                                       }

  before do
    object.operation.should be_kind_of(Logic::Connective::Disjunction)
  end

  it { should equal(right) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/unit/veritas/optimizer/logic/connective/disjunction/false_left_operand/optimize_spec.rb