test/tilt_markaby_test.rb in tilt-1.2.1 vs test/tilt_markaby_test.rb in tilt-1.2.2

- old
+ new

@@ -24,9 +24,14 @@ test "should render from a string (given as data)" do tilt = ::Tilt::MarkabyTemplate.new { "html do; end" } assert_equal "<html></html>", tilt.render end + test "can be rendered more than once" do + tilt = ::Tilt::MarkabyTemplate.new { "html do; end" } + 3.times { assert_equal "<html></html>", tilt.render } + end + test "should evaluate a template file in the scope given" do scope = Object.new def scope.foo "bar" end \ No newline at end of file