[openstreetmap/openstreetmap-website] Replace trace-related fixtures with factories. (#1347)

Andy Allan notifications at github.com
Wed Nov 9 17:40:45 UTC 2016

Oh, I think I've figured it out. In some places in the tests, we do things like

def test_something
  trace = Trace.create
If the created trace has an id <= 10 , then one of the fixture files from will be deleted. Gah. So it's not only execution-order-dependent, it only happens with the primary key sequence is reset, which is why I was struggling to reproduce it locally.

I'll need to think about this, suggestions welcome.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20161109/c03df994/attachment-0001.html>

More information about the rails-dev mailing list