1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #3809 from lest/test-helpers-in-erb

fix warning in tests when using render_erb helper
This commit is contained in:
José Valim 2011-11-30 07:11:40 -08:00
commit 2b96b20f3a

View file

@ -82,6 +82,8 @@ module RenderERBUtils
end end
def render_erb(string) def render_erb(string)
@virtual_path = nil
template = ActionView::Template.new( template = ActionView::Template.new(
string.strip, string.strip,
"test template", "test template",