Last active
August 29, 2015 14:08
-
-
Save brendanstennett/b322070eed4dac32e46b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# works | |
allow(MyObject).to receive(:each).and_yield(:one).and_yield(:two).and_yield(:three) | |
# want something like | |
allow(MyObject).to receive(:each).and_yield_successive_args(:one, :two, :three) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment