make test template classes compatibile with tilt 0.7

This commit is contained in:
Ryan Tomayko 2010-03-04 03:12:36 -08:00
parent ac2feb71b8
commit ce606e0308
1 changed files with 2 additions and 1 deletions

View File

@ -1,8 +1,9 @@
require File.dirname(__FILE__) + '/helper'
class TestTemplate < Tilt::Template
def compile!
def prepare
end
alias compile! prepare # for tilt < 0.7
def evaluate(scope, locals={}, &block)
inner = block ? block.call : ''