X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b875d14b7cd13432b0683ca548b341dcd8bddf80..f70feedc6517b824c4201584d6298fd5790d85ba:/test/fixtures/changesets.yml diff --git a/test/fixtures/changesets.yml b/test/fixtures/changesets.yml index 2047af8d5..d80b517fe 100644 --- a/test/fixtures/changesets.yml +++ b/test/fixtures/changesets.yml @@ -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,35 +7,65 @@ normal_user_first_change: id: 1 user_id: 1 created_at: "2007-01-01 00:00:00" - open: true + closed_at: <%= Time.now.utc + 86400 %> min_lon: <%= 1 * SCALE %> min_lat: <%= 1 * SCALE %> max_lon: <%= 5 * SCALE %> max_lat: <%= 5 * SCALE %> - -second_user_first_change: + num_changes: 11 + +public_user_first_change: id: 2 user_id: 2 - created_at: "2008-05-01 01:23:45" - open: true + created_at: <%= Time.now.utc %> + closed_at: <%= Time.now.utc + 86400 %> + 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 + +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 -normal_user_version_change: +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.utc %> + closed_at: <%= Time.now.utc + 86400 %> + 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...) +# fixtures (nodes outside the world, etc...), but needs to have +# a valid user... invalid_changeset: id: 5 - user_id: 0 + user_id: 3 + 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" - open: false - \ No newline at end of file + 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 %> +