Permalink
Browse files

Removed unused test file

This test file is not be running from a long time
This test is already covered in controller/caching_test.rb
  • Loading branch information...
1 parent 66cba60 commit fc0faaa5905eab7f2a70b1d5b5aa06bd7b43d7fd @arunagw arunagw committed Jul 17, 2013
Showing with 0 additions and 32 deletions.
  1. +0 −32 actionpack/test/metal/caching_test.rb
View
32 actionpack/test/metal/caching_test.rb
@@ -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

0 comments on commit fc0faaa

Please sign in to comment.