From: Christian Neukirchen Date: 2007-01-24T23:57:17+09:00 Subject: Re: test/spec -- was Re: I don't get rspec "David Chelimsky" writes: > On 1/24/07, Christian Neukirchen wrote: >> "David Chelimsky" writes: >> >> > That said, you can include modules and get reuse that way: >> > >> > module SomeHelperMethodsUsefulAcrossContexts >> > end >> > >> > context "some context" do >> > include SomeHelperMethodsUsefulAcrossContexts >> > end >> > >> > I'd be surprised if test/spec doesn't already support this out of the box. >> >> It works exactly the same in test/spec. > > Glad to hear it. Do you have any feeling about which approach to reuse > you personally prefer? Nested contexts or included modules? As said, nesting is purely for organizational and namespacing purposes. I use modules. -- Christian Neukirchen http://chneukirchen.org