Sha256: acabf73553a39c2c098141b2831fecf3cdaf3e31153c7175175ccce3d4428424
Contents?: true
Size: 737 Bytes
Versions: 1
Compression:
Stored size: 737 Bytes
Contents
# -*- encoding: utf-8 -*- require 'webgen/test_helper' require 'webgen/content_processor/redcloth' class TestRedCloth < MiniTest::Unit::TestCase include Webgen::TestHelper def test_static_call setup_context @website.config['content_processor.redcloth.hard_breaks'] = false cp = Webgen::ContentProcessor::RedCloth @context.content = "h1. header\n\nthis\nis\nsome\ntext" assert_equal("<h1>header</h1>\n<p>this\nis\nsome\ntext</p>", cp.call(@context).content) @context.content = "h1. header\n\nthis\nis\nsome\ntext" @website.config['content_processor.redcloth.hard_breaks'] = true assert_equal("<h1>header</h1>\n<p>this<br />\nis<br />\nsome<br />\ntext</p>", cp.call(@context).content) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webgen-1.0.0.beta1 | test/webgen/content_processor/test_redcloth.rb |