mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix warning in tests when using render_erb helper
This commit is contained in:
parent
e975fe710a
commit
a985309abc
1 changed files with 2 additions and 0 deletions
|
@ -82,6 +82,8 @@ module RenderERBUtils
|
|||
end
|
||||
|
||||
def render_erb(string)
|
||||
@virtual_path = nil
|
||||
|
||||
template = ActionView::Template.new(
|
||||
string.strip,
|
||||
"test template",
|
||||
|
|
Loading…
Reference in a new issue