From: Andy Allan Date: Wed, 19 Oct 2016 10:32:08 +0000 (+0100) Subject: Use model relations when creating objects from factories X-Git-Tag: live~3799^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/feb3b03227dae5e41e631b1df90afc879355617d?hp=feb3b03227dae5e41e631b1df90afc879355617d Use model relations when creating objects from factories Rather than passing around record ids explicitly, we can use the model relations and pass around the models. This makes reading the tests slightly simpler to read. ---