module RSpec::Rails::Mocks::ActiveModelInstanceMethods
def as_new_record
def as_new_record self.stub(:persisted?) { false } self.stub(:id) { nil } self end
def persisted?
def persisted? true end
def as_new_record self.stub(:persisted?) { false } self.stub(:id) { nil } self end
def persisted? true end