Sha256: c8eb820f863b63137fdf6eba04949006d023bb13a9ce45271bb2c0b8856a7014

Contents?: true

Size: 701 Bytes

Versions: 4

Compression:

Stored size: 701 Bytes

Contents

# encoding: utf-8

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

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
veritas-0.0.7 spec/unit/veritas/function/connective/disjunction/methods/or_spec.rb
veritas-0.0.6 spec/unit/veritas/function/connective/disjunction/methods/or_spec.rb
veritas-0.0.5 spec/unit/veritas/function/connective/disjunction/methods/or_spec.rb
veritas-0.0.4 spec/unit/veritas/function/connective/disjunction/methods/or_spec.rb