From: David Chelimsky Date: 2007-01-25T00:25:27+09:00 Subject: Re: test/spec -- was Re: I don't get rspec On 1/24/07, Luke Ivers wrote: > On Wed, 24 Jan 2007 22:05:17 +0900 > "David Chelimsky" wrote: > > > 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? > > > I know I'm not the person that this was targeted at, but I would absolutely > love to see nested contexts included in rspec... I was just wishing I could > do that yesterday. Google this: pipermail rspec nested contexts and you'll see what's been said about it before. Feel free to resurrect the discussion on the rspec-devel or rspec-users list if you have some new insights to add to the discussion. Cheers, David > > > > > > > > Cheers, > > > > David > > > -- > > > Christian Neukirchen http://chneukirchen.org > > > > > > > > > > > -- > Luke Ivers > >