Sha256: fccbd712749e7236d18673c0a73cd4c3923aa344660835723328f77150b2e99a
Contents?: true
Size: 636 Bytes
Versions: 3
Compression:
Stored size: 636 Bytes
Contents
module ActiveMocker module Mock module DoNothingActiveRecordMethods def self.included(base) base.extend(ClassMethods) end module ClassMethods def transaction yield rescue LocalJumpError => err raise err rescue StandardError => e raise e end def column_names attribute_names end end def readonly? false end def errors obj = Object.new def obj.[](key) [] end def obj.full_messages() [] end obj end def valid? true end def marked_for_destruction? false end def destroyed? false end end end end
Version data entries
3 entries across 3 versions & 1 rubygems