X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a90be5e69a478e2b49ae676b649a78589f85a50e..11b1f7d739f7d85c8a65c2a8337394b333c8eee1:/test/fixtures/changesets.yml diff --git a/test/fixtures/changesets.yml b/test/fixtures/changesets.yml index defd691d2..f7d898210 100644 --- a/test/fixtures/changesets.yml +++ b/test/fixtures/changesets.yml @@ -14,10 +14,10 @@ normal_user_first_change: 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" + created_at: <%= DateTime.now.utc %> closed_at: <%= DateTime.now + Rational(1,24) %> num_changes: 0 @@ -28,10 +28,17 @@ 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" + user_id: 2 + created_at: <%= DateTime.now.utc %> closed_at: <%= DateTime.now + Rational(1,24) %> min_lon: <%= 1 * SCALE %> min_lat: <%= 1 * SCALE %> @@ -48,3 +55,17 @@ 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: <%= 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 %> +