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