From 07fcac508adf1740699701adfe309d53316d8e3a Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 7 Jan 2008 08:12:34 +0000 Subject: Ruby 1.9 compat: don't rely on Array#to_s to flatten and join as string git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8590 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/routing_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/test/controller') diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index 177b95a3af..fa467f0796 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -31,8 +31,8 @@ class UriReservedCharactersRoutingTest < Test::Unit::TestCase safe, unsafe = %w(: @ & = + $ , ;), %w(^ / ? # [ ]) hex = unsafe.map { |char| '%' + char.unpack('H2').first.upcase } - @segment = "#{safe}#{unsafe}".freeze - @escaped = "#{safe}#{hex}".freeze + @segment = "#{safe.join}#{unsafe.join}".freeze + @escaped = "#{safe.join}#{hex.join}".freeze end def test_route_generation_escapes_unsafe_path_characters -- cgit v1.2.3