Sha256: 4da7d8eb809ad01f10811d97993998061a6f9186505034e35f5fdd60348a00f2
Contents?: true
Size: 359 Bytes
Versions: 41
Compression:
Stored size: 359 Bytes
Contents
require 'mocha/class_method' module Mocha class ModuleMethod < 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
41 entries across 36 versions & 6 rubygems