Sha256: b8aa442f868069e9a30da7333263e9ad6d59bdc5271662b77b7454da6ce38be1
Contents?: true
Size: 361 Bytes
Versions: 83
Compression:
Stored size: 361 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
83 entries across 83 versions & 11 rubygems