diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-06-25 15:24:12 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-06-25 15:24:12 -0500 |
commit | 339491a6b37722497ebafe9998e17507f47e8fd6 (patch) | |
tree | 96e7dc63607054c6e3ce6f08e41a9e96d8a44ea5 /actionpack/test/controller/caching_test.rb | |
parent | a9259ccfe05690dc4cb7993d551603c39619c27f (diff) | |
download | rails-339491a6b37722497ebafe9998e17507f47e8fd6.tar.gz rails-339491a6b37722497ebafe9998e17507f47e8fd6.tar.bz2 rails-339491a6b37722497ebafe9998e17507f47e8fd6.zip |
Set precompiled fixture load path constant to speed up tests
Diffstat (limited to 'actionpack/test/controller/caching_test.rb')
-rw-r--r-- | actionpack/test/controller/caching_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb index 14cf0a86a1..0140654155 100644 --- a/actionpack/test/controller/caching_test.rb +++ b/actionpack/test/controller/caching_test.rb @@ -6,7 +6,7 @@ CACHE_DIR = 'test_cache' FILE_STORE_PATH = File.join(File.dirname(__FILE__), '/../temp/', CACHE_DIR) ActionController::Base.page_cache_directory = FILE_STORE_PATH ActionController::Base.cache_store = :file_store, FILE_STORE_PATH -ActionController::Base.view_paths = [ File.dirname(__FILE__) + '/../fixtures/' ] +ActionController::Base.view_paths = [FIXTURE_LOAD_PATH] class PageCachingTestController < ActionController::Base caches_page :ok, :no_content, :if => Proc.new { |c| !c.request.format.json? } @@ -631,7 +631,7 @@ class FunctionalCachingController < ActionController::Base end end -FunctionalCachingController.view_paths = [ File.dirname(__FILE__) + "/../fixtures/" ] +FunctionalCachingController.view_paths = [FIXTURE_LOAD_PATH] class FunctionalFragmentCachingTest < Test::Unit::TestCase def setup @@ -642,6 +642,7 @@ class FunctionalFragmentCachingTest < Test::Unit::TestCase @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new end + def test_fragment_caching get :fragment_cached assert_response :success |