From 5a6927955fa5fd65d1127c43570e2ad2b69f54d0 Mon Sep 17 00:00:00 2001 From: moro Date: Sun, 15 Feb 2009 19:35:08 +0900 Subject: [PATCH] fix test data, should specify encoding to use multibyte chars on Ruby 1.9 --- actionpack/test/controller/routing_test.rb | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index d6fc6fd..1caed33 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -1134,6 +1134,7 @@ class LegacyRouteSetTests < Test::Unit::TestCase assert_equal({:controller => "content", :action => 'show_page', :id => 'foo'}, rs.recognize_path("/page/foo")) token = "\321\202\320\265\320\272\321\201\321\202" # 'text' in russian + token.force_encoding("UTF-8") if token.respond_to?(:force_encoding) escaped_token = CGI::escape(token) assert_equal '/page/' + escaped_token, rs.generate(:controller => 'content', :action => 'show_page', :id => token) -- 1.6.0.1