aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/render_test.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-12-29 19:27:19 -0600
committerJoshua Peek <josh@joshpeek.com>2008-12-29 19:27:19 -0600
commit558ab327b733717f4a8de3ed62b8dcd62e9ff9c3 (patch)
treec9fa54a925e8259057d8a6d9b20447d8ae8ea844 /actionpack/test/template/render_test.rb
parent490c26c8433a6d278bc61118782da360e8889646 (diff)
downloadrails-558ab327b733717f4a8de3ed62b8dcd62e9ff9c3.tar.gz
rails-558ab327b733717f4a8de3ed62b8dcd62e9ff9c3.tar.bz2
rails-558ab327b733717f4a8de3ed62b8dcd62e9ff9c3.zip
Clean up view path cruft and split path implementations into Template::Path and Template::EagerPath
Diffstat (limited to 'actionpack/test/template/render_test.rb')
-rw-r--r--actionpack/test/template/render_test.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/actionpack/test/template/render_test.rb b/actionpack/test/template/render_test.rb
index 0387a11de2..4bd897efeb 100644
--- a/actionpack/test/template/render_test.rb
+++ b/actionpack/test/template/render_test.rb
@@ -197,7 +197,7 @@ class CachedViewRenderTest < Test::Unit::TestCase
# Ensure view path cache is primed
def setup
view_paths = ActionController::Base.view_paths
- assert view_paths.first.loaded?
+ assert_equal ActionView::Template::EagerPath, view_paths.first.class
setup_view(view_paths)
end
end
@@ -208,8 +208,9 @@ class LazyViewRenderTest < Test::Unit::TestCase
# Test the same thing as above, but make sure the view path
# is not eager loaded
def setup
- view_paths = ActionView::Base.process_view_paths(FIXTURE_LOAD_PATH)
- assert !view_paths.first.loaded?
+ 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
end