Sha256: 16068c88d7814643fb5992e3ccdf31ae744211da2de8a80d33b2710a2b9abccf

Contents?: true

Size: 660 Bytes

Versions: 1

Compression:

Stored size: 660 Bytes

Contents

require 'spec_helper'
require File.expand_path('../fixtures/classes', __FILE__)

[ :and, :& ].each do |method|
  describe "Veritas::Logic::Connective::Conjunction::Methods##{method}" do
    subject { object.send(method, predicate) }

    let(:klass)     { ConjunctionMethodsSpecs::Object            }
    let(:header)    { Relation::Header.new([ [ :id, Integer ] ]) }
    let(:predicate) { header[:id].eq(1)                          }
    let(:object)    { klass.new.freeze                           }

    it 'returns a conjunction of the proposition and predicate' do
      should eql(Logic::Connective::Conjunction.new(object, predicate))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/unit/veritas/logic/connective/conjunction/methods/and_spec.rb