Sha256: 2a6169ea5ae4bce074f6965ac2e38c4259b05cb2e19ea561f4adcfd656cc65ba
Contents?: true
Size: 738 Bytes
Versions: 2
Compression:
Stored size: 738 Bytes
Contents
# -*- encoding: utf-8 -*- require 'webgen/test_helper' require 'webgen/content_processor/red_cloth' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webgen-1.0.0.beta3 | test/webgen/content_processor/test_red_cloth.rb |
webgen-1.0.0.beta2 | test/webgen/content_processor/test_red_cloth.rb |