[rspec-users] id getting overwritten with 0 when testing

2012-01-24 Thread Guyren G Howe
My code that saves a record works fine in development or production, or from the console. I can take the code in my test and run it in the console, and it works fine. But when I run it under a model rspec, the ids are getting set to 0. I’ve traced it through to where I do: Model.create params

Re: [rspec-users] id getting overwritten with 0 when testing

2012-01-24 Thread Guyren G Howe
On Jan 24, 2012, at 11:27 PM, Julian Leviston wrote: On 25/01/2012, at 5:24 PM, Guyren G Howe wrote: My code that saves a record works fine in development or production, or from the console. I can take the code in my test and run it in the console, and it works fine. But when I run it