# File lib/rspec/rails/mocks.rb, line 138defas_new_recordself.__send__("#{self.class.primary_key}=", nil)
superend
connection()click to toggle source
# File lib/rspec/rails/mocks.rb, line 147defconnectionraiseRSpec::Rails::IllegalDataAccessException.new("stubbed models are not allowed to access the database")
end
new_record?()click to toggle source
# File lib/rspec/rails/mocks.rb, line 143defnew_record?!persisted?end