btakita / rr

RR (Double Ruby) is a test double framework that features a rich selection of double techniques and a terse syntax.
http://github.com/rr/rr
MIT License
501 stars 58 forks source link

Documentation needs to describe RR::ProcFromBlock #71

Closed trcarden closed 11 years ago

trcarden commented 13 years ago

Check this stackoverflow:

http://stackoverflow.com/questions/8056523/how-do-you-mock-a-method-with-a-block-using-rr-double-ruby-on-rails-3

It would have been really useful to document how to pass a block to a mocked method. I had to discover this myself and i don't see it currently in the docs. A quick mention would be really useful.

Thanks!

mcmire commented 11 years ago

Superceded by #82.