]> git.openstreetmap.org Git - rails.git/commit
Use model relations when creating objects from factories
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 19 Oct 2016 10:32:08 +0000 (11:32 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 19 Oct 2016 10:32:08 +0000 (11:32 +0100)
commitfeb3b03227dae5e41e631b1df90afc879355617d
treecddfd2c0ba9f60fdb6fed2bcab512ef793dd3fff
parent23c79ba2a39288dc69fff7b0587004545c40e941
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.
test/controllers/diary_entry_controller_test.rb
test/controllers/notes_controller_test.rb
test/controllers/user_controller_test.rb
test/models/note_test.rb
test/models/user_test.rb