Sha256: ef0f92abe4c83aaabb3a9c553a70ab84375b66d6b5998f0c4a94ee274ec3f926
Contents?: true
Size: 536 Bytes
Versions: 22
Compression:
Stored size: 536 Bytes
Contents
require 'spec_helper' class Predicate describe Or, "and_split" do let(:tautology){ Factory.tautology } subject{ predicate.and_split(list) } context 'when attributes on one side' do let(:predicate){ Factory.eq(:x, 2) | Factory.eq(:y, 3) } context 'when fully covered' do let(:list){ [:x, :y] } it{ should eq([predicate, tautology]) } end context 'when fully disjoint' do let(:list){ [:z] } it{ should eq([tautology, predicate]) } end end end end
Version data entries
22 entries across 22 versions & 1 rubygems