On 7 June 2010 16:34, Matt Wynne <m...@mattwynne.net> wrote: I'm still not quite clear what you're trying to achieve. Do you want to > assert that a specific block is passed to the collaborator, or do you want > to assert that any old block with a particular behaviour is passed to the > collaborator? > > If it's the former, you can test it by creating a test double for the > block, and asserting that it's passed to the collaborator >
The later. The block gets created by the code under test, so I can't create a double for it. -Ben
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users