[Rails] Re: How to development Database for testing

2010-08-17 Thread Agoofin
Take a look at some Rails testing resources - http://guides.rubyonrails.org/testing.html - take a look at the fixtures part. I can't think of a reason not to have a separate testing database or to try and run tests on the dev db, unless you are trying to re-invent the wheel and make your own tes

[Rails] Re: How to development Database for testing

2010-08-17 Thread Ar Chron
Rajkumar Surabhi wrote: > Marnen Laibow-Koser wrote: > > hi, > May be but i need it to use single development database for both > enviroments Rails makes the right things to do very easy, and if you stray outside that, well you made a conscious decision to go that route, and bear the consequenc

[Rails] Re: How to development Database for testing

2010-08-17 Thread Marnen Laibow-Koser
stephenallred wrote: > On Aug 17, 7:54�am, Rajkumar Surabhi wrote: >> May be but i need it to use single development database for both >> enviroments > > Why? Why indeed? That's a BAD, DANGEROUS practice. Best, --  Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org Sent from my iPhon

[Rails] Re: How to development Database for testing

2010-08-17 Thread stephenallred
On Aug 17, 7:54 am, Rajkumar Surabhi wrote: > May be but i need it to use single development database for both > enviroments Why? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@goog

[Rails] Re: How to development Database for testing

2010-08-16 Thread Rajkumar Surabhi
Marnen Laibow-Koser wrote: hi, May be but i need it to use single development database for both enviroments -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to r

[Rails] Re: How to development Database for testing

2010-08-16 Thread Marnen Laibow-Koser
Rajkumar Surabhi wrote: > Hi, > > i want to use development database for my testing purpose. No you don't. The point of a test database is to have something that your tests can run against without messing with your dev data. > The problem is with, when test cases are run, it deletes the data b

[Rails] Re: How to development Database for testing

2010-08-16 Thread Rajkumar Surabhi
Anubhaw Prakash wrote: > Rajkumar Surabhi wrote: >> Hi, >> >> i want to use development database for my testing purpose. >> The problem is with, when test cases are run, it deletes the data before >> and after the test. but i dont want the data to be deleted. >> how to do this. > > Hi Rajkumar, >

[Rails] Re: How to development Database for testing

2010-08-16 Thread Anubhaw Prakash
Rajkumar Surabhi wrote: > Hi, > > i want to use development database for my testing purpose. > The problem is with, when test cases are run, it deletes the data before > and after the test. but i dont want the data to be deleted. > how to do this. Hi Rajkumar, You can duplicate your development d