From: Matt Amos Date: Mon, 27 Jul 2009 16:59:14 +0000 (+0000) Subject: Fix compatibility with older versions of the ruby std lib (i.e: the one on cruise... X-Git-Tag: live~6777 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/1e1d7cef733696c85db8cd1b943c29d0b0ec43be?ds=sidebyside Fix compatibility with older versions of the ruby std lib (i.e: the one on cruise.osm.org) --- diff --git a/test/functional/amf_controller_test.rb b/test/functional/amf_controller_test.rb index 9193cb4d2..c00003cbb 100644 --- a/test/functional/amf_controller_test.rb +++ b/test/functional/amf_controller_test.rb @@ -464,7 +464,7 @@ class AmfControllerTest < ActionController::TestCase # normal user has a changeset open 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" } amf_content "putpoi", "/1", ["test@example.com:test", changeset.id, nil, nil, lon, lat, tags, nil]