Rails fixtures seem to be adding extra unexpected data

Posted by Mason Jones on Stack Overflow See other posts from Stack Overflow or by Mason Jones
Published on 2009-10-08T00:19:44Z Indexed on 2010/05/06 5:08 UTC
Read the original article Hit count: 187

Filed under:
|

Hello, all. I've got a dynamic fixture CSV file that's generating predictable data for a table in order for my unit tests to do their thing. It's working as expected and filling the table with the data, but when I check the table after the tests run, I'm seeing a number of additional rows of "blank" data (all zeros, etc). Those aren't being created by the fixture, and the unit tests are read-only, just doing selects, so I can't blame the code. There doesn't seem to be any logging done during the fixtures setup, so I can't see when the "blank" data is being inserted. Anyone ever run across this before, or have any ideas of how to log or otherwise see what the fixture setup is doing in order to trace down the source of the blank data?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about fixtures