Navigation Menu

Skip to content

Commit

Permalink
Remove duplicate test case
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdunae committed Sep 7, 2011
1 parent e2cf7a6 commit fca255e
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions test/test_misc.rb
Expand Up @@ -17,30 +17,6 @@ def test_parsing_extra_quotes
premailer = Premailer.new(io, :adapter => :nokogiri)
assert_match /<h3>[\s]*<a name="WAR">[\s]*<\/a>[\s]*Writes and Resources[\s]*<\/h3>/i, premailer.to_inline_css
end

# https://github.com/alexdunae/premailer/issues/#issue/28
def test_style_expanding
html = <<END_HTML
<html>
<body>
<style type="text/css">
td { border-left: 1px solid black; }
td.special { border: none; }
td p { padding: 0; }
td.special p { padding-left: 10px; }
</style>
<table><tr><td class="special"><p>Test</p></td></tr></table>
</body>
</html>
END_HTML

[:hpricot, :nokogiri].each do |adapter|
premailer = Premailer.new(html, :with_html_string => true, :adapter => adapter)
premailer.to_inline_css
assert_match /padding\: 0 0 0 10px/i, premailer.processed_doc.at('p')['style']
assert_match /border\: none; border\-left\: 1px solid black/i, premailer.processed_doc.at('td')['style']
end
end

def test_styles_in_the_body
html = <<END_HTML
Expand Down

0 comments on commit fca255e

Please sign in to comment.