Sha256: a6975bfb750d84ff2502e2895ab7ab422f9b66d697a0d4d038ffbc6764884876
Contents?: true
Size: 566 Bytes
Versions: 2
Compression:
Stored size: 566 Bytes
Contents
module ActiveMock 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 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_mocker-1.4.2 | lib/active_mock/do_nothing_active_record_methods.rb |
active_mocker-1.4.1 | lib/active_mock/do_nothing_active_record_methods.rb |