Permalink
Browse files

add an example that states a RuntimeError should occur when input is …

…malformed HTML tags
  • Loading branch information...
1 parent 910b726 commit d7ec650d8723131271bad3619b66d64fadbf679d @mislav committed Feb 19, 2009
Showing with 6 additions and 0 deletions.
  1. +6 −0 spec/bug_spec.rb
View
6 spec/bug_spec.rb
@@ -37,4 +37,10 @@
end
end
+ it "should generate error when parsing malformed HTML" do
+ lambda {
+ markdown("<level1 <level2> some text >")
+ }.should raise_error(RuntimeError)
+ end
+
end

0 comments on commit d7ec650

Please sign in to comment.