# 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("
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