Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
wallyqs committed Dec 2, 2014
1 parent f4b93ff commit bbab8e6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<p>#{org}</p>\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.
Expand Down

0 comments on commit bbab8e6

Please sign in to comment.