diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2009-02-09 14:20:30 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-02-09 14:20:30 -0600 |
commit | 893e9eb99504705419ad6edac14d00e71cef5f12 (patch) | |
tree | 17a2c15b63335beb97ecfea5ca6ca5a776639fa5 /actionpack/test/template/render_test.rb | |
parent | 5120429c3138d46490a1c4a611ebd93410f4f885 (diff) | |
download | rails-893e9eb99504705419ad6edac14d00e71cef5f12.tar.gz rails-893e9eb99504705419ad6edac14d00e71cef5f12.tar.bz2 rails-893e9eb99504705419ad6edac14d00e71cef5f12.zip |
Improve view rendering performance in development mode and reinstate template recompiling in production [#1909 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.rb | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/actionpack/test/template/render_test.rb b/actionpack/test/template/render_test.rb index 9db62d9c23..34e7e82366 100644 --- a/actionpack/test/template/render_test.rb +++ b/actionpack/test/template/render_test.rb @@ -243,25 +243,12 @@ module RenderTestCases end end -class CachedViewRenderTest < Test::Unit::TestCase +class CachedRenderTest < Test::Unit::TestCase include RenderTestCases # Ensure view path cache is primed def setup view_paths = ActionController::Base.view_paths - assert_equal ActionView::Template::EagerPath, view_paths.first.class - setup_view(view_paths) - end -end - -class LazyViewRenderTest < Test::Unit::TestCase - include RenderTestCases - - # Test the same thing as above, but make sure the view path - # is not eager loaded - def setup - path = ActionView::Template::Path.new(FIXTURE_LOAD_PATH) - view_paths = ActionView::Base.process_view_paths(path) assert_equal ActionView::Template::Path, view_paths.first.class setup_view(view_paths) end |