module RSpec::Rails::Mocks::ActiveRecordInstanceMethods

def [](key)

def [](key)
  send(key)
end

def destroy

def destroy
  self.stub(:persisted?) { false }
  self.stub(:id) { nil }
end

def new_record?

def new_record?
  !persisted?
end