Sha256: e6c9034f9afb1cd2edc0591b446d673169bf432f20565116c8e3a2022f2b290c
Contents?: true
Size: 702 Bytes
Versions: 4
Compression:
Stored size: 702 Bytes
Contents
require 'update_helper' module Alf module Update describe Deleter, 'extend' do let(:expr){ extend(suppliers, :foo => lambda{ 12 }) } subject{ delete(expr, predicate) } context 'pass-through' do let(:predicate){ Predicate.eq(:id => 1) } it 'requests the deletion on :suppliers' do subject db_context.requests.should eq([ [:delete, :suppliers, predicate] ]) end end context 'non pass-through' do let(:predicate){ Predicate.eq(:foo => 1) } it 'requests the deletion on :suppliers' do pending "need for Predicate.in" do subject end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems