Sha256: 228f7ff986a41e2d3210c4bfe4757cdb61c92d07953203a1e60caf16bb7d56d1

Contents?: true

Size: 659 Bytes

Versions: 1

Compression:

Stored size: 659 Bytes

Contents

require 'spec_helper'
require File.expand_path('../fixtures/classes', __FILE__)

[ :or, :| ].each do |method|
  describe "Veritas::Logic::Connective::Disjunction::Methods##{method}" do
    subject { object.send(method, predicate) }

    let(:klass)     { DisjunctionMethodsSpecs::Object            }
    let(:header)    { Relation::Header.new([ [ :id, Integer ] ]) }
    let(:predicate) { header[:id].eq(1)                          }
    let(:object)    { klass.new.freeze                           }

    it 'returns a disjunction of the proposition and predicate' do
      should eql(Logic::Connective::Disjunction.new(object, predicate))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/unit/veritas/logic/connective/disjunction/methods/or_spec.rb