Sha256: af332ad18439738408376a16136d58f80c4d09012e44f14c04d7b732234c5c1e
Contents?: true
Size: 695 Bytes
Versions: 2
Compression:
Stored size: 695 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.coerce([[: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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | spec/unit/axiom/function/connective/disjunction/methods/or_spec.rb |
axiom-0.1.1 | spec/unit/axiom/function/connective/disjunction/methods/or_spec.rb |