aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/render_test.rb
diff options
context:
space:
mode:
authorCezary Baginski <cezary.baginski@gmail.com>2009-04-02 11:58:29 -0500
committerJoshua Peek <josh@joshpeek.com>2009-04-02 11:58:29 -0500
commit44423126c6f6133a1d9cf1d0832b527e8711d40f (patch)
tree9d08651844ef31aa00a6937695e8a34169fac617 /actionpack/test/template/render_test.rb
parentcad3e8b261a8d9551bc19a57007acf574d957548 (diff)
downloadrails-44423126c6f6133a1d9cf1d0832b527e8711d40f.tar.gz
rails-44423126c6f6133a1d9cf1d0832b527e8711d40f.tar.bz2
rails-44423126c6f6133a1d9cf1d0832b527e8711d40f.zip
Additional template render test for backup files [#2367 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack/test/template/render_test.rb')
-rw-r--r--actionpack/test/template/render_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/template/render_test.rb b/actionpack/test/template/render_test.rb
index 9adf053b09..80fd549fd7 100644
--- a/actionpack/test/template/render_test.rb
+++ b/actionpack/test/template/render_test.rb
@@ -255,6 +255,12 @@ module RenderTestCases
assert_equal Encoding::UTF_8, result.encoding
end
end
+
+ def test_render_with_backup_files
+ result = @view.render :file => "/test/backup_files/item"
+ assert_equal "The correct item.erb was loaded.\n", result
+ end
+
end
module TemplatesSetupTeardown