• Yorick Peterse's avatar
    Only instrument methods defined directly · 641761f1
    Yorick Peterse authored
    When using instrument_methods/instrument_instance_methods we only want
    to instrument methods defined directly in a class, not those included
    via mixins (e.g. whatever RSpec throws in during development).
    
    In case an externally included method _has_ to be instrumented we can
    still use the regular instrument_method/instrument_instance_method
    methods.
    641761f1
instrumentation.rb 3.11 KB