From: Luke Ivers Date: 2007-01-24T23:57:28+09:00 Subject: Re: test/spec -- was Re: I don't get rspec 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. > > > > > Cheers, > > > David > > -- > > Christian Neukirchen http://chneukirchen.org > > > > > -- Luke Ivers