Sha256: 686eb6bae5267d4827b62d01cbde29ffffce316189ddd16605aaba2ac44386d5
Contents?: true
Size: 627 Bytes
Versions: 3
Compression:
Stored size: 627 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Function::Connective::Disjunction, '#inverse' do subject { object.inverse } let(:attribute) { Attribute::Integer.new(:id) } let(:left) { attribute.gt(1) } let(:right) { attribute.lt(3) } let(:object) { described_class.new(left, right) } it_should_behave_like 'an invertible method' it { should be_instance_of(Function::Connective::Conjunction) } its(:left) { should eql(Function::Connective::Negation.new(object.left)) } its(:right) { should eql(Function::Connective::Negation.new(object.right)) } end
Version data entries
3 entries across 3 versions & 1 rubygems