]> git.openstreetmap.org Git - rails.git/blobdiff - test/fixtures/changesets.yml
Fixed some bugs in changeset query code. Added more test cases.
[rails.git] / test / fixtures / changesets.yml
index de6f4f7860653d4479cfd19196de36fef59cd819..ed0df02288843f4fc8c5347ebd9d91661da5cc3c 100644 (file)
@@ -1,18 +1,46 @@
+# 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
+  open: true
+  min_lon: <%= 1 * SCALE %>
+  min_lat: <%= 1 * SCALE %>
+  max_lon: <%= 5 * SCALE %>
+  max_lat: <%= 5 * SCALE %>
   
 second_user_first_change:
   id: 2
   user_id: 2
   created_at: "2008-05-01 01:23:45"
-  open: 1
+  open: true
 
 normal_user_closed_change:
   id: 3
   user_id: 1
   created_at: "2007-01-01 00:00:00"
-  open: 0
+  open: false
+
+normal_user_version_change:
+  id: 4
+  user_id: 1
+  created_at: "2008-01-01 00:00:00"
+  open: true
+  min_lon: <%= 1 * SCALE %>
+  min_lat: <%= 1 * SCALE %>
+  max_lon: <%= 4 * SCALE %>
+  max_lat: <%= 4 * SCALE %>
+
+# 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"
+  open: false
+  
\ No newline at end of file