spec/nodes/block_spec.rb in hemingway-0.0.2 vs spec/nodes/block_spec.rb in hemingway-0.0.3

- old
+ new

@@ -12,10 +12,14 @@ it "should only parse blocks with matching begin and end tags" do @parser.parse("\\begin{itemize} \\item hey \\end{description}").should be_nil end - end + it "should allow me to put blocks right after text and a newline" do + html = @parser.parse("check out this f*ckin block:\n\\begin{itemize} \\item hey \\end{itemize}").html + html.should == "<div class='entry'><p>check out this f*ckin block:<ul><li>hey </li></ul></p></div>" + end + end end end