igrep / crispy

Test Spy for Any Object in Ruby.
http://rubygems.org/gems/crispy
MIT License
22 stars 2 forks source link

spy_into().only, spy_into().except, spy_into! #35

Open igrep opened 9 years ago

igrep commented 9 years ago

Add feature to select which method to spy by the user.

spy_into(x).only(:hoge)
x.foo
spy(x).received_messages.map(&:method_name)
# => []

spy_into! involves incompatible change: spy_into only spies methods specified by only. spy_into! spies all methods like exisiting spy_into