Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stubbing method to yield given block #44

Open
mostlyobvious opened this issue Oct 9, 2013 · 2 comments
Open

Stubbing method to yield given block #44

mostlyobvious opened this issue Oct 9, 2013 · 2 comments

Comments

@mostlyobvious
Copy link

Currently bogus does not support stubbing method to yield given block as in RR or rspec-mocks.

@fgrehm
Copy link

fgrehm commented Jan 4, 2014

👍 I've hit the same issue today :(

@psyho
Copy link
Owner

psyho commented Apr 29, 2014

It would be easy to add a support for this for stubbing/mocking, but marrying it with contracts is definitely non-trivial.

I'll have to figure out how to record the values yielded by a method. If it turns out to be impossible (and I think that considering all the border cases with instance_exec and such it might be), then we'll have to decide if it's worth having a feature that does not integrate well with the rest of the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants