Sha256: 3f61ce046feb9ab7efc5b8cdd586930ef1bbe058d3a1724a59a73db885b0b121
Contents?: true
Size: 613 Bytes
Versions: 15
Compression:
Stored size: 613 Bytes
Contents
require 'spec_helper' class Predicate describe And, "&" do let(:left){ Factory.eq(:x, 2) & Factory.eq(:y, 3) } subject{ left & right } context 'with another predicate' do let(:right) { Factory.eq(:z, 4) } it 'collects it' do expect(subject).to be_a(And) expect(subject.size).to eql(4) end end context 'with another and' do let(:right) { Factory.eq(:w, 5) & Factory.eq(:z, 4) } it 'collects it' do expect(subject).to be_a(And) expect(subject.size).to eql(5) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems