]> git.openstreetmap.org Git - rails.git/blobdiff - test/fixtures/changesets.yml
Fixed bug #1816 - the timeout updating logic should have been in a before_save handle...
[rails.git] / test / fixtures / changesets.yml
index ed0df02288843f4fc8c5347ebd9d91661da5cc3c..9f6b201a53d19e7ab80b447d963ba51ce2187edf 100644 (file)
@@ -7,33 +7,44 @@ normal_user_first_change:
   id: 1
   user_id: 1
   created_at: "2007-01-01 00:00:00"
-  open: true
+  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:
+public_user_first_change:
   id: 2
   user_id: 2
-  created_at: "2008-05-01 01:23:45"
-  open: true
+  created_at: <%= Time.now.getutc %>
+  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: false
+  closed_at: "2007-01-02 00:00:00"
+  num_changes: 0
 
-normal_user_version_change:
+public_user_closed_change:
+  id: 7
+  user_id: 2
+  created_at: "2007-01-01 00:00:00"
+  closed_at: "2007-01-02 00:00:00"
+  num_changes: 0
+
+public_user_version_change:
   id: 4
-  user_id: 1
-  created_at: "2008-01-01 00:00:00"
-  open: true
+  user_id: 2
+  created_at: <%= Time.now.getutc %>
+  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
@@ -42,5 +53,19 @@ invalid_changeset:
   id: 5
   user_id: 3
   created_at: "2008-01-01 00:00:00"
-  open: false
-  
\ No newline at end of file
+  closed_at: "2008-01-02 00:00:00"
+  num_changes: 9
+
+# changeset which still has time remaining, but has been closed
+# by containing too many elements.
+too_many_elements_changeset:
+  id: 6
+  user_id: 1
+  created_at: "2008-01-01 00:00:00"
+  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: <%= Changeset::MAX_ELEMENTS + 1 %>
+