Sha256: a58d2e8395f3ddadffdc27156bbb735cdb9e152972bfd5bb4dd79141f9db4737
Contents?: true
Size: 631 Bytes
Versions: 2
Compression:
Stored size: 631 Bytes
Contents
require 'spec_helper' module Hemingway describe Parser do before do @parser = Parser.new end describe "#block" do it "should only parse blocks with matching begin and end tags" do @parser.parse("\\begin{itemize} \\item hey \\end{description}").should be_nil 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hemingway-1.0.0 | spec/nodes/block_spec.rb |
hemingway-0.0.3 | spec/nodes/block_spec.rb |