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:
parent
509832c5b3
commit
76708eefcf
5 changed files with 40 additions and 9 deletions
14
test/fixtures/changesets.yml
vendored
14
test/fixtures/changesets.yml
vendored
|
@ -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 %>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue