module RSpec::Rails::Mocks::InstanceMethods
def as_new_record
def as_new_record self.stub(:id) { nil } self end
def destroy
def destroy self.stub(:id) { nil } end
def new_record?
def new_record? !persisted? end
def persisted?
def persisted? !!id end
def valid?
def valid? true end