aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/render_test.rb
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2009-02-09 14:20:30 -0600
committerJoshua Peek <josh@joshpeek.com>2009-02-09 14:20:30 -0600
commit893e9eb99504705419ad6edac14d00e71cef5f12 (patch)
tree17a2c15b63335beb97ecfea5ca6ca5a776639fa5 /actionpack/test/template/render_test.rb
parent5120429c3138d46490a1c4a611ebd93410f4f885 (diff)
downloadrails-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.rb15
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