Sha256: 80301e47a13b3d5aafbedfd852a15dc2b73fe7c3cb94c737e66f68f2b8471b12
Contents?: true
Size: 696 Bytes
Versions: 2
Compression:
Stored size: 696 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require File.expand_path('../fixtures/classes', __FILE__) [:and, :&].each do |method| describe Function::Connective::Conjunction::Methods, "##{method}" do subject { object.send(method, predicate) } let(:described_class) { ConjunctionMethodsSpecs::Object } let(:header) { Relation::Header.coerce([[:id, Integer]]) } let(:predicate) { header[:id].eq(1) } let(:object) { described_class.new.freeze } it 'returns a conjunction of the proposition and predicate' do should eql(Function::Connective::Conjunction.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/conjunction/methods/and_spec.rb |
axiom-0.1.1 | spec/unit/axiom/function/connective/conjunction/methods/and_spec.rb |