Sha256: 9ae548c024a732101b888cdfd1b6a15d719b990394d837dd6ee45d8e72e6e516
Contents?: true
Size: 453 Bytes
Versions: 22
Compression:
Stored size: 453 Bytes
Contents
module RR class SpyVerificationProxy instance_methods.each do |m| unless m =~ /^_/ || m.to_s == 'object_id' || m.to_s == "instance_eval" || m.to_s == 'respond_to?' alias_method "__blank_slated_#{m}", m undef_method m end end def initialize(subject) @subject = subject end def method_missing(method_name, *args, &block) SpyVerification.new(@subject, method_name, args) end end end
Version data entries
22 entries across 22 versions & 3 rubygems