diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-10-28 17:10:52 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-10-28 17:10:52 +0100 |
commit | 1df157cd38c9246a87f0643f78be7f8fdb5bb474 (patch) | |
tree | 8b3d41f021a743c0697ea790e8f9b70cf26c793c /actionpack/test/template/render_test.rb | |
parent | 3e54a9a689915c28bc806498e5d1d1af91255fb0 (diff) | |
parent | ac50ee0edfa0df90ae7a8dd09f4a41ecbd1c7a94 (diff) | |
download | rails-1df157cd38c9246a87f0643f78be7f8fdb5bb474.tar.gz rails-1df157cd38c9246a87f0643f78be7f8fdb5bb474.tar.bz2 rails-1df157cd38c9246a87f0643f78be7f8fdb5bb474.zip |
Merge branch 'master' of git@github.com:rails/rails
Diffstat (limited to 'actionpack/test/template/render_test.rb')
-rw-r--r-- | actionpack/test/template/render_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/template/render_test.rb b/actionpack/test/template/render_test.rb index a4ea22ddcb..7e4fff3da6 100644 --- a/actionpack/test/template/render_test.rb +++ b/actionpack/test/template/render_test.rb @@ -41,6 +41,10 @@ class ViewRenderTest < Test::Unit::TestCase assert_equal "The secret is in the sauce\n", @view.render("test/dot.directory/render_file_with_ivar") end + def test_render_has_access_current_template + assert_equal "test/template.erb", @view.render("test/template.erb") + end + def test_render_update # TODO: You should not have to stub out template because template is self! @view.instance_variable_set(:@template, @view) |