From: Andy Allan Date: Thu, 6 Oct 2016 07:52:17 +0000 (+0100) Subject: Add factories for notes and note_comments X-Git-Tag: live~3737^2~6 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/2e1ccafdce30a06fab7a72e5c856ce8a6c23bfdd Add factories for notes and note_comments --- diff --git a/test/factories/note_comments.rb b/test/factories/note_comments.rb new file mode 100644 index 000000000..b06dc378a --- /dev/null +++ b/test/factories/note_comments.rb @@ -0,0 +1,8 @@ +FactoryGirl.define do + factory :note_comment do + sequence(:body) { |n| "This is note comment #{n}" } + visible true + event "opened" + note + end +end diff --git a/test/factories/notes.rb b/test/factories/notes.rb new file mode 100644 index 000000000..52c23e7d6 --- /dev/null +++ b/test/factories/notes.rb @@ -0,0 +1,7 @@ +FactoryGirl.define do + factory :note do + latitude 1 * GeoRecord::SCALE + longitude 1 * GeoRecord::SCALE + # tile QuadTile.tile_for_point(1,1) + end +end