Sha256: 5d788792867e4f4d65f8749f4e1107cea4e2711ca6c96f8599a1cfdcac6389f4
Contents?: true
Size: 427 Bytes
Versions: 3
Compression:
Stored size: 427 Bytes
Contents
require 'spec_helper' describe "A document loaded from rails" do before(:all) do require 'mongoid/railties/document' end after(:all) do Mongoid::Document.class_eval do undef _destroy end end it "defines a _destroy method" do Person.new.should respond_to(:_destroy) end describe "#_destroy" do it "always returns false" do Person.new._destroy.should be_false end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-3.1.7 | spec/mongoid/railties/document_spec.rb |
mongoid-3.1.6 | spec/mongoid/railties/document_spec.rb |
mongoid-3.1.5 | spec/mongoid/railties/document_spec.rb |