Going forward, what do people think about being able to say

mock.should_receive(:debug).with_block  { |log_block|
  # execute log_block, and check its return value
 }

Thoughts?

Peter


On Sat, Mar 21, 2009 at 8:25 PM, Mark Wilden <m...@mwilden.com> wrote:
> On Mon, Mar 16, 2009 at 4:00 AM, Yun Huang Yong <y...@nomitor.com> wrote:
>>
>> i.e. something like:
>>  log_mock.should_receive(:debug) { |log_block|
>>    # execute log_block, and check its return value
>>  }
>
> I suppose you could always look at the source code for the debug
> method, find out what it does with the result of the block and set an
> expectation on that behavior.
>
> ///ark
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to