Closed trcarden closed 11 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!
Superceded by #82.
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!