Sha256: 89ef28164230fc623bee649be2a8701134d98817746f692cb27b2d1af33d6633
Contents?: true
Size: 360 Bytes
Versions: 57
Compression:
Stored size: 360 Bytes
Contents
require 'mocha/class_method' module Mocha class InstanceMethod < ClassMethod def method_exists?(method) return true if stubbee.public_methods(false).include?(method) return true if stubbee.protected_methods(false).include?(method) return true if stubbee.private_methods(false).include?(method) return false end end end
Version data entries
57 entries across 46 versions & 5 rubygems