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