Fixed bug in changeset closing and querying where the number of elements exceeded the maximum. Added a fixture for this.

This commit is contained in:
Matt Amos 2009-02-07 17:45:27 +00:00
parent 509832c5b3
commit 76708eefcf
5 changed files with 40 additions and 9 deletions

View file

@ -48,3 +48,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 %>