Sha256: abc23ea47d6d6fd603f975ee3a76b184b6146de0e8c504105c5565d144ffe9dc
Contents?: true
Size: 450 Bytes
Versions: 22
Compression:
Stored size: 450 Bytes
Contents
require 'mocha/api' module Mocha module Integration module MonkeyPatcher def self.apply(mod, run_method_patch) unless mod < Mocha::API mod.send(:include, Mocha::API) end unless mod.method_defined?(:run_before_mocha) mod.send(:alias_method, :run_before_mocha, :run) mod.send(:remove_method, :run) mod.send(:include, run_method_patch) end end end end end
Version data entries
22 entries across 18 versions & 5 rubygems