Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread Edvard Majakari
> Yeah but then I get to say RTFM. Right now, TFM doesn't exist :( rant << EOF Indeed. People see much trouble in writing documentation so that they don't have to answer the same questions ad nauseam. It would be nice if we appreciated their efforts and check the documentation first. EOF -- "

Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread David Chelimsky
On Tue, Feb 26, 2008 at 8:31 AM, Max Williams <[EMAIL PROTECTED]> wrote: > hehe, tbh even if the documentation had been there i probably wouldn't have > read it :) Yeah but then I get to say RTFM. Right now, TFM doesn't exist :( > > thanks! > > > > On 26/02/2008, David Chelimsky <[EMAIL PROTECTED

Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread Max Williams
hehe, tbh even if the documentation had been there i probably wouldn't have read it :) thanks! On 26/02/2008, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On Tue, Feb 26, 2008 at 8:08 AM, Max Williams > > <[EMAIL PROTECTED]> wrote: > > > > > > > > On 26/02/2008, David Chelimsky <[EMAIL PROTECTE

Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread David Chelimsky
On Tue, Feb 26, 2008 at 8:08 AM, Max Williams <[EMAIL PROTECTED]> wrote: > > > > On 26/02/2008, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > > On Tue, Feb 26, 2008 at 7:39 AM, Max Williams > > <[EMAIL PROTECTED]> wrote: > > > > > > > > This does not happen for you implicitly when you use before

Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread Max Williams
On 26/02/2008, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On Tue, Feb 26, 2008 at 7:39 AM, Max Williams > <[EMAIL PROTECTED]> wrote: > > > This does not happen for you implicitly when you use before(:all) > because there is no mechanism for running a group of examples in a > transaction. ah..

Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread David Chelimsky
On Tue, Feb 26, 2008 at 7:39 AM, Max Williams <[EMAIL PROTECTED]> wrote: > I'm using before(:all) because i want to create a single 'family' of tree > objects and then run tests against it. If i have all the object creation as > a before(:each) then the database will be even more full of duplicati

Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread Max Williams
I'm using before(:all) because i want to create a single 'family' of tree objects and then run tests against it. If i have all the object creation as a before(:each) then the database will be even more full of duplications, won't it? My problem, though, is that the data is left over from the last

Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread David Chelimsky
On Tue, Feb 26, 2008 at 5:41 AM, Edvard Majakari <[EMAIL PROTECTED]> wrote: > > My problems seem to be arising from the fact that when i run the test, the > > objects i created last time are still in the database. Shouldn't they be > > cleared out automatically? This in turn is preventing me fr

Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread Edvard Majakari
> My problems seem to be arising from the fact that when i run the test, the > objects i created last time are still in the database. Shouldn't they be > cleared out automatically? This in turn is preventing me from saving root I don't know RSpec that well, but I'd guess before(:all) is run only