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

Some docs about yields mock in README #82

Closed seban closed 11 years ago

seban commented 12 years ago

Some time ago I had problem with mocking method which yields a block. I will be helpful to see some info in README. It is related to iissue #71

raphaelcm commented 11 years ago

Actually, this isn't working for me. See: http://stackoverflow.com/questions/15030235/yield-to-a-block-using-rr

raphaelcm commented 11 years ago

Still +1 that documentation needs to be added

raphaelcm commented 11 years ago

Finally got it. I think the documentation should be expanded beyond your snippet, but it's a good start.

mcmire commented 11 years ago

Thanks - I'll review this and pull it in.

mcmire commented 11 years ago

Hey there - sorry for the late update, new maintainer here. I added a new section to the README titled "Modifying doubles" which documents #yields as well as the other methods which you are allowed to call on doubles. Can you take a look and tell me if this clears things up? Thanks.