These are instructions for replacing fixtures with factories, developed for https://github.com/openstreetmap/openstreetmap-website
- Run the tests
Make sure all the tests pass (bundle exec rake test
) before starting!
- Choose the fixture
Pick a fixture file from test/fixtures
. If they come in pairs (e.g. notes.yml and note_comments.yml) it's easier to do both at the same time. Have a read through, and get a rough idea of what the differences are between each of the fixtures.