lib/method_cleanout.rb in hardmock-1.1.0 vs lib/method_cleanout.rb in hardmock-1.2.0

- old
+ new

@@ -1,8 +1,8 @@ module Hardmock #:nodoc: module MethodCleanout #:nodoc: - SACRED_METHODS = %w|__id__ __send__ equal? object_id send nil? class kind_of? respond_to?| + SACRED_METHODS = %w|__id__ __send__ equal? object_id send nil? class kind_of? respond_to? inspect| def self.included(base) #:nodoc: base.class_eval do instance_methods.each { |m| undef_method m unless SACRED_METHODS.include?(m.to_s)