]> git.openstreetmap.org Git - rails.git/blobdiff - test/fixtures/changesets.yml
better handling of duplicate tags. Extra validation in the tests.
[rails.git] / test / fixtures / changesets.yml
index 7d97f2abfedb3dba61a7fa7a73647c4e33471b13..defd691d2c773d67a4579cb37273fa72660fcdf0 100644 (file)
@@ -1,24 +1,50 @@
+# FIXME! all of these changesets need their bounding boxes set correctly!
+# 
+<% SCALE = 10000000 unless defined?(SCALE) %>
+
 # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
 normal_user_first_change:
   id: 1
   user_id: 1
   created_at: "2007-01-01 00:00:00"
-  open: 1
+  closed_at: <%= DateTime.now + Rational(1,24) %>
+  min_lon: <%= 1 * SCALE %>
+  min_lat: <%= 1 * SCALE %>
+  max_lon: <%= 5 * SCALE %>
+  max_lat: <%= 5 * SCALE %>
+  num_changes: 11
   
 second_user_first_change:
   id: 2
   user_id: 2
   created_at: "2008-05-01 01:23:45"
-  open: 1
+  closed_at: <%= DateTime.now + Rational(1,24) %>
+  num_changes: 0
 
 normal_user_closed_change:
   id: 3
   user_id: 1
   created_at: "2007-01-01 00:00:00"
-  open: 0
+  closed_at: "2007-01-02 00:00:00"
+  num_changes: 0
 
 normal_user_version_change:
   id: 4
   user_id: 1
   created_at: "2008-01-01 00:00:00"
-  open: 1
+  closed_at: <%= DateTime.now + Rational(1,24) %>
+  min_lon: <%= 1 * SCALE %>
+  min_lat: <%= 1 * SCALE %>
+  max_lon: <%= 4 * SCALE %>
+  max_lat: <%= 4 * SCALE %>
+  num_changes: 8
+
+# changeset to contain all the invalid stuff that is in the
+# fixtures (nodes outside the world, etc...), but needs to have
+# a valid user...
+invalid_changeset:
+  id: 5
+  user_id: 3
+  created_at: "2008-01-01 00:00:00"
+  closed_at: "2008-01-02 00:00:00"
+  num_changes: 9