diff options
author | lest <just.lest@gmail.com> | 2011-11-30 18:05:23 +0300 |
---|---|---|
committer | lest <just.lest@gmail.com> | 2011-11-30 18:05:23 +0300 |
commit | a985309abc8993ddc33c7a604bc41868909f457c (patch) | |
tree | c1f9ec75ece3baf9e580d712b71dcad53a909781 /actionpack | |
parent | e975fe710a1a78d723cfd91c07014627f92e3250 (diff) | |
download | rails-a985309abc8993ddc33c7a604bc41868909f457c.tar.gz rails-a985309abc8993ddc33c7a604bc41868909f457c.tar.bz2 rails-a985309abc8993ddc33c7a604bc41868909f457c.zip |
fix warning in tests when using render_erb helper
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/abstract_unit.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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", |