require File.dirname(__FILE__) + '/spec_helper' describe "ERB helper" do it "should add a textile tag to ERB" do template = %{<%=t "This new ERB tag makes is so _easy_ to use *RedCloth*" %>} expected = %{

This new ERB tag makes is so easy to use RedCloth

} ERB.new(template).result.should == expected end end