test/test_pandoc-ruby.rb in pandoc-ruby-0.6.0 vs test/test_pandoc-ruby.rb in pandoc-ruby-0.6.1
- old
+ new
@@ -25,10 +25,10 @@
converter.expects(:execute).with("#{path}/pandoc").returns(true)
assert converter.convert
end
should "treat file paths as strings by default" do
- assert_equal "<p>#{@file}</p>", PandocRuby.new(@file).to_html
+ assert_equal "<p>#{@file}</p>\n", PandocRuby.new(@file).to_html
end
should "treat file paths as file paths when enabled" do
PandocRuby.allow_file_paths = true
assert PandocRuby.new(@file).to_html.match(%r{This is a Title})