diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-09-27 23:10:53 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-09-27 23:10:53 -0500 |
commit | 9142da09e536ce85789129e81fb9e6cee3c295be (patch) | |
tree | b29bf5ab30246043e5d5c0ab0ea10b905c36a003 /actionpack/test/metal | |
parent | aca39428eb1166094e2746b56d62565ee24d513d (diff) | |
download | rails-9142da09e536ce85789129e81fb9e6cee3c295be.tar.gz rails-9142da09e536ce85789129e81fb9e6cee3c295be.tar.bz2 rails-9142da09e536ce85789129e81fb9e6cee3c295be.zip |
move metal/caching_test into controller/caching_test
Diffstat (limited to 'actionpack/test/metal')
-rw-r--r-- | actionpack/test/metal/caching_test.rb | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/actionpack/test/metal/caching_test.rb b/actionpack/test/metal/caching_test.rb deleted file mode 100644 index a2b6763754..0000000000 --- a/actionpack/test/metal/caching_test.rb +++ /dev/null @@ -1,32 +0,0 @@ -require 'abstract_unit' - -CACHE_DIR = 'test_cache' -# Don't change '/../temp/' cavalierly or you might hose something you don't want hosed -FILE_STORE_PATH = File.join(File.dirname(__FILE__), '/../temp/', CACHE_DIR) - -class CachingController < ActionController::Metal - abstract! - - include ActionController::Caching - - self.page_cache_directory = FILE_STORE_PATH - self.cache_store = :file_store, FILE_STORE_PATH -end - -class PageCachingTestController < CachingController - caches_page :ok - - def ok - self.response_body = "ok" - end -end - -class PageCachingTest < ActionController::TestCase - tests PageCachingTestController - - def test_should_cache_get_with_ok_status - get :ok - assert_response :ok - assert File.exist?("#{FILE_STORE_PATH}/page_caching_test/ok.html"), "get with ok status should have been cached" - end -end |