Sha256: 9f668b775a192d83a0755f8790c738bbf82e5ea365ef6c7187d438ecb4806400
Contents?: true
Size: 702 Bytes
Versions: 4
Compression:
Stored size: 702 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.new([ [ :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
4 entries across 4 versions & 1 rubygems