Add factories for notes and note_comments
This commit is contained in:
parent
05ad0a4f7d
commit
2e1ccafdce
2 changed files with 15 additions and 0 deletions
8
test/factories/note_comments.rb
Normal file
8
test/factories/note_comments.rb
Normal 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
7
test/factories/notes.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue