mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
This commit is contained in:
parent
7324444344
commit
07fcac508a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue