btakita/rr — Issue #71: Documentation needs to describe RR::ProcFromBlock
Author: trcarden
Created: 2011-11-10 19:46:32+00:00
State: open

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!