[Rails] Re: Store test data into the testing database using rspec

2008-09-08 Thread Russell Norris
if you need preexisting values/objects in the database for specific tests, you should either create them in a setup block, create them with a factory method [see things like Factory Girl or Fixture Replacement], or load them via fixtures. if we had more specifics we could give more specific advice.

[Rails] Re: Store test data into the testing database using rspec

2008-09-08 Thread Frederick Cheung
On 8 Sep 2008, at 12:39, Thorsten Müller wrote: > >> I have problem storing the values into the test databse. >> >> so that i can't cross check the values in the database. > > What values? (fixtures, results generated by your code...?) > What problems? (errors, nothing stored...?) Here's a gue

[Rails] Re: Store test data into the testing database using rspec

2008-09-08 Thread Thorsten Müller
>  I have problem storing the values into the test databse. > > so that i can't cross check the values in the database. What values? (fixtures, results generated by your code...?) What problems? (errors, nothing stored...?) Could you guys take 5 mins thinking before asking questions? assuming y