Skip to content

Commit

Permalink
We are trying to test that & escapes here not that & is being esc…
Browse files Browse the repository at this point in the history
…aped, also added a cosmetic change to test_link_tag_with_query_and_no_name

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
spastorino authored and jeremy committed Jun 30, 2010
1 parent 68bd46f commit 7bd00fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions actionpack/test/template/url_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,12 @@ def test_link_tag_with_host_option

def test_link_tag_with_query
expected = %{<a href="http://www.example.com?q1=v1&amp;q2=v2">Hello</a>}
assert_dom_equal expected, link_to("Hello", "http://www.example.com?q1=v1&amp;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&amp;q2=v2">http://www.example.com?q1=v1&amp;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
Expand Down

0 comments on commit 7bd00fc

Please sign in to comment.