require 'spec_helper' module Hemingway describe Parser do before do @parser = Parser.new end describe "#verbatim" do it 'allows me to instantiate pre-formatted text' do html = @parser.parse("\\begin{verbatim} don't we \n \n all wish \n \n for a little sleep? \\end{verbatim}").html html.should == "

don't  we  \n \n all wish \n \n   for a little sleep? 

" end it 'allows me to write tex markup that isnt parses' do html = @parser.parse("\\begin{verbatim} Emphasized text uses the \\emph{} tag. \\end{verbatim}").html html.should == "

Emphasized text uses the \\emph{} tag. 

" end end end end