Skip to content

Commit

Permalink
Remove action view test duplication
Browse files Browse the repository at this point in the history
Same test exists above 2 or 3 lines.
  • Loading branch information
sanemat committed Jul 6, 2013
1 parent ebabdfb commit 56e3419
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions actionview/test/template/url_helper_test.rb
Expand Up @@ -336,8 +336,6 @@ def test_link_to_unless
assert_dom_equal %{<a href="/">Listing</a>},
link_to_unless(false, "Listing", url_hash)

assert_equal "Showing", link_to_unless(true, "Showing", url_hash)

assert_equal "<strong>Showing</strong>",
link_to_unless(true, "Showing", url_hash) { |name|
"<strong>#{name}</strong>".html_safe
Expand All @@ -357,7 +355,6 @@ def test_link_to_unless
def test_link_to_if
assert_equal "Showing", link_to_if(false, "Showing", url_hash)
assert_dom_equal %{<a href="/">Listing</a>}, link_to_if(true, "Listing", url_hash)
assert_equal "Showing", link_to_if(false, "Showing", url_hash)
end

def request_for_url(url, opts = {})
Expand Down

0 comments on commit 56e3419

Please sign in to comment.