Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix test data, should specify encoding to use multibyte chars on Ruby…

… 1.9

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
commit bfe7d518a78714d70d3d50a2ddf5621057f5b6a0 1 parent 98ddc64
@moro moro authored jeremy committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  actionpack/test/controller/routing_test.rb
View
1  actionpack/test/controller/routing_test.rb
@@ -1134,6 +1134,7 @@ def test_route_with_text_default
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)
Please sign in to comment.
Something went wrong with that request. Please try again.