Skip to content

Instantly share code, notes, and snippets.

@brendanstennett
Last active August 29, 2015 14:08
Show Gist options
  • Save brendanstennett/b322070eed4dac32e46b to your computer and use it in GitHub Desktop.
Save brendanstennett/b322070eed4dac32e46b to your computer and use it in GitHub Desktop.
# 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