From 2e1ccafdce30a06fab7a72e5c856ce8a6c23bfdd Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Thu, 6 Oct 2016 08:52:17 +0100 Subject: [PATCH] Add factories for notes and note_comments --- test/factories/note_comments.rb | 8 ++++++++ test/factories/notes.rb | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 test/factories/note_comments.rb create mode 100644 test/factories/notes.rb 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 -- 2.43.2