Stubs `persisted?` to return false and `id` to return nil @return self
# File lib/rspec/rails/mocks.rb, line 14 def as_new_record RSpec::Mocks.allow_message(self, :persisted?).and_return(false) RSpec::Mocks.allow_message(self, :id).and_return(nil) self end
Generated with the Darkfish Rdoc Generator 2.