[rspec-devel] Using Behaviours inside Examples

David Chelimsky dchelimsky at gmail.com
Thu Jul 19 12:03:28 EDT 2007


On 7/19/07, Bob Cotton <bob.cotton at rallydev.com> wrote:
> "David Chelimsky" <dchelimsky at gmail.com> writes:
>
> > dump_summary is never getting called when you run a single behaviour
> > (i.e. tell that behaviour to run). dump_summary is called from the
> > BehaviourRunner.
> >
> > What you can do is call @reporter.dump and that would do it.
>
> Cool, thanks.
>
> One more question, if I'm using mocks in the "outer" Example, will
> calling Behaviour#run reset them?

I don't understand your question. What is the "outer" example?

>
> I'm seeing it in my spec, but have not been able to create an isolated
> spec.
>
>  -Bob
> _______________________________________________
> rspec-devel mailing list
> rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel
>


More information about the rspec-devel mailing list