From a28a4975b05452b2d0bd2986031264ff752a7217 Mon Sep 17 00:00:00 2001 From: Johannes Barre Date: Wed, 16 Feb 2011 18:33:06 +0100 Subject: [PATCH] Test modified, so it fails if ? or / are escaped in the anchor --- actionpack/test/controller/url_for_test.rb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actionpack/test/controller/url_for_test.rb b/actionpack/test/controller/url_for_test.rb index 71a4a43..4e3eb56 100644 --- a/actionpack/test/controller/url_for_test.rb +++ b/actionpack/test/controller/url_for_test.rb @@ -41,8 +41,8 @@ module AbstractController end def test_anchor_should_not_escape_safe_pchar - assert_equal('/c/a#name=user&email=user@domain.com', - W.new.url_for(:only_path => true, :controller => 'c', :action => 'a', :anchor => Struct.new(:to_param).new('name=user&email=user@domain.com')) + assert_equal('/c/a#?name=user&email=user@domain.com&path=/articles/5', + W.new.url_for(:only_path => true, :controller => 'c', :action => 'a', :anchor => Struct.new(:to_param).new('?name=user&email=user@domain.com&path=/articles/5')) ) end -- 1.7.4