Browse files

Use the right minitest method

  • Loading branch information...
1 parent 0830ff9 commit 58cd859caa49ba36cff382522c51e4ed85009017 @rafaelfranca rafaelfranca committed Aug 1, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 actionpack/test/template/url_helper_test.rb
View
8 actionpack/test/template/url_helper_test.rb
@@ -489,10 +489,10 @@ def test_current_page_with_escaped_params
def test_current_page_with_escaped_params_with_different_encoding
@request = request_for_url("/")
- @request.stub(:path, "/category/administra%c3%a7%c3%a3o".force_encoding(Encoding::ASCII_8BIT)) do
- assert current_page?(:controller => 'foo', :action => 'category', category: 'administração')
- assert current_page?("http://www.example.com/category/administra%c3%a7%c3%a3o")
- end
+ @request.stubs(path: "/category/administra%c3%a7%c3%a3o".force_encoding(Encoding::ASCII_8BIT))
+
+ assert current_page?(:controller => 'foo', :action => 'category', category: 'administração')
+ assert current_page?("http://www.example.com/category/administra%c3%a7%c3%a3o")
end
def test_current_page_with_double_escaped_params

0 comments on commit 58cd859

Please sign in to comment.