From bbab8e6dd4afa419af47c68909618273bb392939 Mon Sep 17 00:00:00 2001 From: Waldemar Quevedo Date: Tue, 2 Dec 2014 14:16:22 -0500 Subject: [PATCH] Add test --- spec/parser_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/parser_spec.rb b/spec/parser_spec.rb index a477fed..6c83d7b 100644 --- a/spec/parser_spec.rb +++ b/spec/parser_spec.rb @@ -192,6 +192,15 @@ end end + describe "Make it possible to disable rubypants pass" do + it "should allow the raw dash" do + org = "This is a dash -- that will remain as is." + parser = Orgmode::Parser.new(org, { :skip_rubypants_pass => true }) + expected = "

#{org}

\n" + expect(expected).to eq(parser.to_html) + end + end + describe "Export to HTML test cases" do # Dynamic generation of examples from each *.org file in html_examples. # Each of these files is convertable to HTML.