Sha256: 9aec9fc946bbb002dcc09d79293647c1d9c303af99cb6c514b706327e00164ad
Contents?: true
Size: 482 Bytes
Versions: 10
Compression:
Stored size: 482 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 == "instance_exec" || 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
10 entries across 10 versions & 3 rubygems