aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/prototype_helper_test.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-04-02 12:48:59 +0000
committerPratik Naik <pratiknaik@gmail.com>2008-04-02 12:48:59 +0000
commit1e087fd3fd0d6c0b839ab6c15982a996a5d4d531 (patch)
treeea3fac18189a3d716085fa6461dcaf886a48372e /actionpack/test/template/prototype_helper_test.rb
parent6a36d96aa2171a00bc63c0696969f5782dd5c5a4 (diff)
downloadrails-1e087fd3fd0d6c0b839ab6c15982a996a5d4d531.tar.gz
rails-1e087fd3fd0d6c0b839ab6c15982a996a5d4d531.tar.bz2
rails-1e087fd3fd0d6c0b839ab6c15982a996a5d4d531.zip
Ensure RJS redirect_to doesn't html-escapes string argument. Closes #8546
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9212 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template/prototype_helper_test.rb')
-rw-r--r--actionpack/test/template/prototype_helper_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/test/template/prototype_helper_test.rb b/actionpack/test/template/prototype_helper_test.rb
index 47173a0cb1..28e58b0a08 100644
--- a/actionpack/test/template/prototype_helper_test.rb
+++ b/actionpack/test/template/prototype_helper_test.rb
@@ -358,6 +358,8 @@ class JavaScriptGeneratorTest < Test::Unit::TestCase
def test_redirect_to
assert_equal 'window.location.href = "http://www.example.com/welcome";',
@generator.redirect_to(:action => 'welcome')
+ assert_equal 'window.location.href = "http://www.example.com/welcome?a=b&c=d";',
+ @generator.redirect_to("http://www.example.com/welcome?a=b&c=d")
end
def test_delay