# File lib/rspec/rails/mocks.rb, line 21 def destroy self.stub(:persisted?) { false } self.stub(:id) { nil } end
# File lib/rspec/rails/mocks.rb, line 26 def new_record? !persisted? end
[Validate]
Generated with the Darkfish Rdoc Generator 2.