]> git.openstreetmap.org Git - rails.git/commit
Update notes_controller_test to use note and note_comment factories
authorAndy Allan <git@gravitystorm.co.uk>
Thu, 6 Oct 2016 08:15:47 +0000 (09:15 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Thu, 6 Oct 2016 08:15:47 +0000 (09:15 +0100)
commitc302174b0c532ded0eb7a808ba4556a67b96a111
treefb8e55ec6a0a986c47fd97e5e51fce60b50362e0
parent886dc00ad42fd1af819bbf399f9e939fd34702df
Update notes_controller_test to use note and note_comment factories

I've ported across the naming for each note from the old fixture names.
This helps in the mega-tests where multiple notes are tested at the
same time.

The number or results have changed in some tests, since there's little
point in creating e.g. 5 note comments when 2 is enough to test the
functionality.
test/controllers/notes_controller_test.rb