Sha256: 82b8e29ab76638400d0bbf60ccd844c9c384e786c8d079befc33debeb67c3c88
Contents?: true
Size: 665 Bytes
Versions: 20
Compression:
Stored size: 665 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 def reload self end end end end
Version data entries
20 entries across 20 versions & 1 rubygems