# File lib/rr/dsl.rb, line 135 def spy(subject) subject_methods = subject.public_methods.map {|method_name| method_name.to_sym } methods_to_stub = subject_methods - METHODS_TO_EXCLUDE_FROM_SPYING methods_to_stub.each do |method| stub.proxy(subject, method) end end