Add factories for notes and note_comments

This commit is contained in:
Andy Allan 2016-10-06 08:52:17 +01:00
parent 05ad0a4f7d
commit 2e1ccafdce
2 changed files with 15 additions and 0 deletions

View file

@ -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

7
test/factories/notes.rb Normal file
View file

@ -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