Ruby on Rails
HowToUsePreloadedFixtures

Question:Preloaded fixtures are great for two reasons:

  1. They are much quicker
  2. They solve foreign key issues

However, they don’t seem to be mature yet. Could someone write some info on how to use them?

Answer:I’ve written up an article on how to manually load fixtures, rather than rely on Rails tests to do it for you. In my example, I load a YAML fixture and use the contents to compare against an Activerecord model, to ensure that the contents match:

Rails Testing Fixtures Extended