Sha256: 25843fd6833c9bdc6d6d15636997fc3ae07f3188547e3327dd276bc803aae0f5

Contents?: true

Size: 409 Bytes

Versions: 4

Compression:

Stored size: 409 Bytes

Contents

require 'update_helper'
module Alf
  module Update
    describe Deleter, 'project' do

      let(:expr)     { project(suppliers, [:name]) }
      let(:predicate){ Predicate.eq(:name => "Jones") }

      subject{ delete(expr, predicate) }

      it 'requests the deletion on :suppliers' do
        subject
        db_context.requests.should eq([ [:delete, :suppliers, predicate] ])
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-update/deleter/test_project.rb
alf-core-0.14.0 spec/unit/alf-update/deleter/test_project.rb
alf-core-0.13.1 spec/unit/alf-update/deleter/test_project.rb
alf-core-0.13.0 spec/unit/alf-update/deleter/test_project.rb