]> git.openstreetmap.org Git - rails.git/blobdiff - test/fixtures/changesets.yml
Use created at for RSS format with note#show
[rails.git] / test / fixtures / changesets.yml
index defd691d2c773d67a4579cb37273fa72660fcdf0..2d5ce4e2aaf7703922d081e149555876afdb9d28 100644 (file)
@@ -1,5 +1,5 @@
 # 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
@@ -7,18 +7,25 @@ normal_user_first_change:
   id: 1
   user_id: 1
   created_at: "2007-01-01 00:00:00"
-  closed_at: <%= DateTime.now + Rational(1,24) %>
+  closed_at: <%= Time.now.utc + 86400 %>
   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"
-  closed_at: <%= DateTime.now + Rational(1,24) %>
+  created_at: <%= Time.now.utc %>
+  closed_at: <%= Time.now.utc + 86400 %>
+  num_changes: 0
+
+deleted_user_first_change:
+  id: 9
+  user_id: 11
+  created_at: "2007-01-01 00:00:00"
+  closed_at: "2007-01-02 00:00:00"
   num_changes: 0
 
 normal_user_closed_change:
@@ -28,11 +35,18 @@ normal_user_closed_change:
   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"
-  closed_at: <%= DateTime.now + Rational(1,24) %>
+  user_id: 2
+  created_at: <%= Time.now.utc %>
+  closed_at: <%= Time.now.utc + 86400 %>
   min_lon: <%= 1 * SCALE %>
   min_lat: <%= 1 * SCALE %>
   max_lon: <%= 4 * SCALE %>
@@ -48,3 +62,23 @@ invalid_changeset:
   created_at: "2008-01-01 00:00:00"
   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: <%= Time.now.utc + 86400 %>
+  min_lon: <%= 1 * SCALE %>
+  min_lat: <%= 1 * SCALE %>
+  max_lon: <%= 4 * SCALE %>
+  max_lat: <%= 4 * SCALE %>
+  num_changes: <%= Changeset::MAX_ELEMENTS + 1 %>
+
+normal_user_subscribed_change:
+  id: 8
+  user_id: 1
+  created_at: "2007-01-01 00:00:00"
+  closed_at: "2007-01-02 00:00:00"
+  num_changes: 0