module RSpec::Rails::Mocks::ActiveRecordInstanceMethods

def destroy

Stubs `persisted?` to return `false` and `id` to return `nil`.
def destroy
  self.stub(:persisted?) { false }
  self.stub(:id) { nil }
end