# File test.rb, line 236 def test_filter source = "[%filter :reverse %]foo[%end%]" assert_equal("oof", @@p.parse(source).output, "FilterCommands can be used to filter raw template text.") @@p["f"] = "boy" source = "[%filter :reverse %][%var f%][%end%]" assert_equal("yob", @@p.parse(source).output, "Commands in a FilterCommand are parsed before filtering") end