Sha256: 29099d71f528bc44fd63fba60c223f9d524086d489f74004eabee0ce9eba3977
Contents?: true
Size: 713 Bytes
Versions: 1
Compression:
Stored size: 713 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/function/connective/disjunction/methods/or_spec.rb |