Sha256: ea1b48c2a3e210c988c00988516e1ad532469db2f7a2e36604334457ec0f8d9c
Contents?: true
Size: 389 Bytes
Versions: 15
Compression:
Stored size: 389 Bytes
Contents
require "spec_helper" 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
15 entries across 15 versions & 1 rubygems