Sha256: ea1a3b590c2f6912fe38384bb4702e4af73db7e5c8ca1f40ca68910680210fe8
Contents?: true
Size: 437 Bytes
Versions: 24
Compression:
Stored size: 437 Bytes
Contents
require File.join(File.dirname(__FILE__), "/../../../spec_helper.rb") describe Mongoid::Commands::Delete do describe "#execute" do before do @collection = mock @document = stub(:collection => @collection, :id => "1") end it "removes the document from its collection" do @collection.expects(:remove).with({ :_id => @document.id }) Mongoid::Commands::Delete.execute(@document) end end end
Version data entries
24 entries across 24 versions & 1 rubygems