diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-06-29 21:41:27 -0300 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-06-29 18:01:32 -0700 |
commit | 7bd00fcb7f8e7f94811387cd809480a727b61f11 (patch) | |
tree | e276f38f9c9f64c66b55d5edd8798fce9c216784 /actionpack/test | |
parent | 68bd46ffb99282ecb589c9ed2cd0c74d0da3396e (diff) | |
download | rails-7bd00fcb7f8e7f94811387cd809480a727b61f11.tar.gz rails-7bd00fcb7f8e7f94811387cd809480a727b61f11.tar.bz2 rails-7bd00fcb7f8e7f94811387cd809480a727b61f11.zip |
We are trying to test that & escapes here not that & is being escaped, also added a cosmetic change to test_link_tag_with_query_and_no_name
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/url_helper_test.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/actionpack/test/template/url_helper_test.rb b/actionpack/test/template/url_helper_test.rb index befb55fb48..765beebfa3 100644 --- a/actionpack/test/template/url_helper_test.rb +++ b/actionpack/test/template/url_helper_test.rb @@ -135,13 +135,12 @@ class UrlHelperTest < ActiveSupport::TestCase def test_link_tag_with_query expected = %{<a href="http://www.example.com?q1=v1&q2=v2">Hello</a>} - assert_dom_equal expected, link_to("Hello", "http://www.example.com?q1=v1&q2=v2") + assert_dom_equal expected, link_to("Hello", "http://www.example.com?q1=v1&q2=v2") end def test_link_tag_with_query_and_no_name - link = link_to(nil, "http://www.example.com?q1=v1&q2=v2") expected = %{<a href="http://www.example.com?q1=v1&q2=v2">http://www.example.com?q1=v1&q2=v2</a>} - assert_dom_equal expected, link + assert_dom_equal expected, link_to(nil, "http://www.example.com?q1=v1&q2=v2") end def test_link_tag_with_back |