Sha256: d7ef79c4366e98d96faf137b7c8a06f70616c081ab0e4d48ce761de0f4a7afa4
Contents?: true
Size: 435 Bytes
Versions: 45
Compression:
Stored size: 435 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 expect(Person.new).to respond_to(:_destroy) end describe "#_destroy" do it "always returns false" do expect(Person.new._destroy).to be false end end end
Version data entries
45 entries across 40 versions & 3 rubygems