Merge remote-tracking branch 'openstreetmap/pull/1492'
This commit is contained in:
commit
834a821d3c
7 changed files with 85 additions and 59 deletions
16
test/factories/old_node.rb
Normal file
16
test/factories/old_node.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
FactoryGirl.define do
|
||||
factory :old_node do
|
||||
latitude 1 * GeoRecord::SCALE
|
||||
longitude 1 * GeoRecord::SCALE
|
||||
|
||||
# FIXME: needs changeset factory
|
||||
changeset_id 1
|
||||
|
||||
# FIXME: needs node factory
|
||||
node_id 1000
|
||||
|
||||
visible true
|
||||
timestamp Time.now
|
||||
version 1
|
||||
end
|
||||
end
|
8
test/factories/redaction.rb
Normal file
8
test/factories/redaction.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
FactoryGirl.define do
|
||||
factory :redaction do
|
||||
sequence(:title) { |n| "Redaction #{n}" }
|
||||
sequence(:description) { |n| "Description of redaction #{n}" }
|
||||
|
||||
user
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue