Skip to content

Commit

Permalink
Update spec for latest markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
sentientmonkey committed Oct 21, 2013
1 parent be267f2 commit 982d1c4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions spec/markdown_filter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,20 @@
<!DOCTYPE html PUBLIC
\"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN\"
\"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd\">
<html xml:lang='en' xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title>Foo</title></head>
<html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:svg=\"http://www.w3.org/2000/svg\" xml:lang=\"en\">
<head><meta http-equiv=\"Content-type\" content=\"application/xhtml+xml;charset=utf-8\" /><title>Foo</title></head>
<body>
<h1 id='foo'>Foo</h1>
<h1 id="foo">Foo</h1>
</body></html>
eos
).chomp
end

it "should filter markdown partial" do
MarkdownFilter.new.call("# Foo", :partial => true).must_equal "<h1 id='foo'>Foo</h1>"
MarkdownFilter.new.call("# Foo", :partial => true).must_equal (<<-eos
<h1 id="foo">Foo</h1>
eos
)
end
end

0 comments on commit 982d1c4

Please sign in to comment.