# File lib/rspec/rails/mocks.rb, line 126 def as_new_record self.stub(:persisted?) { false } self.stub(:id) { nil } self end
# File lib/rspec/rails/mocks.rb, line 132 def persisted? true end
[Validate]
Generated with the Darkfish Rdoc Generator 2.