Permalink
Browse files

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
  • Loading branch information...
1 parent 7324444 commit 07fcac508adf1740699701adfe309d53316d8e3a @jeremy jeremy committed Jan 7, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/controller/routing_test.rb
@@ -31,8 +31,8 @@ def setup
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

0 comments on commit 07fcac5

Please sign in to comment.