ATTN BITSWEAT: Alternative to Fixtures?

Joe Ruby <rails-mailing-list@andreas-s.net> writes:

In the panel at RailsConf, you said that you don't use fixtures but a copy of the production database instead. Can you elaborate on how you do tests this way (you also said it wasn't that difficult :wink: )?

http://media.pragprog.com/titles/fr_rr/code/CreateFixturesFromLiveData/lib/tasks/extract_fixtures.rake

There is an 'extract_fixtures' rake task, which will do that.

HTH.