# encoding: utf-8 class Nanoc3::Filters::RedClothTest < MiniTest::Unit::TestCase include Nanoc3::TestHelpers def test_filter if_have 'redcloth' do # Get filter filter = ::Nanoc3::Filters::RedCloth.new # Run filter result = filter.run("h1. Foo") assert_equal("

Foo

", result) end end def test_filter_with_options if_have 'redcloth' do # Get filter filter = ::Nanoc3::Filters::RedCloth.new # Run filter without options result = filter.run("I am a member of SPECTRE.") assert_equal("

I am a member of SPECTRE.

", result) # Run filter with options result = filter.run("I am a member of SPECTRE.", :no_span_caps => true) assert_equal("

I am a member of SPECTRE.

", result) end end end