# encoding: utf-8 class Nanoc::Filters::RedClothTest < Nanoc::TestCase def test_filter if_have 'redcloth' do # Get filter filter = ::Nanoc::Filters::RedCloth.new # Run filter result = filter.setup_and_run('h1. Foo') assert_equal('
I am a member of SPECTRE.
", result) # Run filter with options result = filter.setup_and_run('I am a member of SPECTRE.', :no_span_caps => true) assert_equal('I am a member of SPECTRE.
', result) end end end