Merge pull request #3809 from lest/test-helpers-in-erb
fix warning in tests when using render_erb helper
This commit is contained in:
commit
2b96b20f3a
|
@ -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 New Issue