Fix compatibility with older versions of the ruby std lib (i.e: the one on cruise.osm.org)

This commit is contained in:
Matt Amos 2009-07-27 16:59:14 +00:00
parent 4826032d18
commit 1e1d7cef73

View file

@ -464,7 +464,7 @@ class AmfControllerTest < ActionController::TestCase
# normal user has a changeset open # normal user has a changeset open
changeset = changesets(:public_user_first_change) changeset = changesets(:public_user_first_change)
mostly_invalid = 32.times.to_a.map {|i| i.chr}.join mostly_invalid = (0..31).to_a.map {|i| i.chr}.join
tags = { "something" => "foo#{mostly_invalid}bar" } tags = { "something" => "foo#{mostly_invalid}bar" }
amf_content "putpoi", "/1", ["test@example.com:test", changeset.id, nil, nil, lon, lat, tags, nil] amf_content "putpoi", "/1", ["test@example.com:test", changeset.id, nil, nil, lon, lat, tags, nil]