Sha256: 78b2068387304726932d77ec39ed0b8aa494e10b640c03277c7c80c21d0f08ad
Contents?: true
Size: 742 Bytes
Versions: 2
Compression:
Stored size: 742 Bytes
Contents
require 'spec_helper' module Alf module Relvar describe Base, "delete" do let(:expr){ Algebra::Operand::Named.new(:suppliers, self) } let(:rv) { Base.new(expr) } def delete(*args) @seen = args end context 'with a predicate' do let(:predicate) { Predicate.eq(:sid, 1) } subject{ rv.delete(predicate) } it 'delegates the call to the connection' do subject @seen.should eq([:suppliers, predicate]) end end context 'without predicate' do subject{ rv.delete } it 'uses a tautology predicate' do subject @seen.should eq([:suppliers, Predicate.tautology]) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alf-core-0.15.0 | spec/unit/alf-relvar/base/test_delete.rb |
alf-core-0.14.0 | spec/unit/alf-relvar/base/test_delete.rb |