Permalink
Browse files

make test template classes compatibile with tilt 0.7

  • Loading branch information...
1 parent ac2feb7 commit ce606e0308d2bca94dfb2216de7200a18cd81ac6 @rtomayko rtomayko committed Mar 4, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/templates_test.rb
View
@@ -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 : ''

0 comments on commit ce606e0

Please sign in to comment.