From a985309abc8993ddc33c7a604bc41868909f457c Mon Sep 17 00:00:00 2001 From: lest Date: Wed, 30 Nov 2011 18:05:23 +0300 Subject: fix warning in tests when using render_erb helper --- actionpack/test/abstract_unit.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionpack/test/abstract_unit.rb') diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb index 644422a6a8..680d562379 100644 --- a/actionpack/test/abstract_unit.rb +++ b/actionpack/test/abstract_unit.rb @@ -82,6 +82,8 @@ module RenderERBUtils end def render_erb(string) + @virtual_path = nil + template = ActionView::Template.new( string.strip, "test template", -- cgit v1.2.3