module RSpec::Rails::Mocks::ActiveRecordInstanceMethods

def new_record?

Returns the opposite of `persisted?`
def new_record?
  !persisted?
end