diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-21 07:14:35 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-21 07:14:35 +0000 |
commit | bd558ef98e17e27da51aee77fe50ef2cd129bb6e (patch) | |
tree | a421c2489f33167c4e3157c288c2d42367374a11 /actionpack/test/controller/custom_handler_test.rb | |
parent | d886ad5c8b6f9eaa8b82e634c989aee48ccaf240 (diff) | |
download | rails-bd558ef98e17e27da51aee77fe50ef2cd129bb6e.tar.gz rails-bd558ef98e17e27da51aee77fe50ef2cd129bb6e.tar.bz2 rails-bd558ef98e17e27da51aee77fe50ef2cd129bb6e.zip |
Improved rendering speed on complicated templates by up to 25% #1234 [Stephan Kaes]. This did necessasitate a change to the internals of ActionView#render_template that now has four parameters. Developers of custom view handlers (like Amrita) need to update for that.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1874 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/custom_handler_test.rb')
-rw-r--r-- | actionpack/test/controller/custom_handler_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/custom_handler_test.rb b/actionpack/test/controller/custom_handler_test.rb index 8939d19166..38e675ffed 100644 --- a/actionpack/test/controller/custom_handler_test.rb +++ b/actionpack/test/controller/custom_handler_test.rb @@ -19,7 +19,7 @@ class CustomHandlerTest < Test::Unit::TestCase end def test_custom_render - result = @view.render_template( "foo", "hello <%= one %>", "one" => "two" ) + result = @view.render_template( "foo", "hello <%= one %>", nil, "one" => "two" ) assert_equal( [ "hello <%= one %>", { "one" => "two" }, @view ], result ) @@ -27,7 +27,7 @@ class CustomHandlerTest < Test::Unit::TestCase def test_unhandled_extension # uses the ERb handler by default if the extension isn't recognized - result = @view.render_template( "bar", "hello <%= one %>", "one" => "two" ) + result = @view.render_template( "bar", "hello <%= one %>", nil, "one" => "two" ) assert_equal "hello two", result end end |