mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
fix warning in tests when using render_erb helper
This commit is contained in:
@@ -82,6 +82,8 @@ module RenderERBUtils
|
||||
end
|
||||
|
||||
def render_erb(string)
|
||||
@virtual_path = nil
|
||||
|
||||
template = ActionView::Template.new(
|
||||
string.strip,
|
||||
"test template",
|
||||
|
||||
Reference in New Issue
Block a user