Skip to content
This repository
Browse code

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...
commit fc0faaa5905eab7f2a70b1d5b5aa06bd7b43d7fd 1 parent 66cba60
Arun Agrawal authored July 17, 2013

Showing 1 changed file with 0 additions and 32 deletions. Show diff stats Hide diff stats

  1. 32  actionpack/test/metal/caching_test.rb
32  actionpack/test/metal/caching_test.rb
... ...
@@ -1,32 +0,0 @@
1  
-require 'abstract_unit'
2  
-
3  
-CACHE_DIR = 'test_cache'
4  
-# Don't change '/../temp/' cavalierly or you might hose something you don't want hosed
5  
-FILE_STORE_PATH = File.join(File.dirname(__FILE__), '/../temp/', CACHE_DIR)
6  
-
7  
-class CachingController < ActionController::Metal
8  
-  abstract!
9  
-
10  
-  include ActionController::Caching
11  
-
12  
-  self.page_cache_directory = FILE_STORE_PATH
13  
-  self.cache_store = :file_store, FILE_STORE_PATH
14  
-end
15  
-
16  
-class PageCachingTestController < CachingController
17  
-  caches_page :ok
18  
-
19  
-  def ok
20  
-    self.response_body = "ok"
21  
-  end
22  
-end
23  
-
24  
-class PageCachingTest < ActionController::TestCase
25  
-  tests PageCachingTestController
26  
-
27  
-  def test_should_cache_get_with_ok_status
28  
-    get :ok
29  
-    assert_response :ok
30  
-    assert File.exist?("#{FILE_STORE_PATH}/page_caching_test/ok.html"), "get with ok status should have been cached"
31  
-  end
32  
-end

0 notes on commit fc0faaa

Please sign in to comment.
Something went wrong with that request. Please try again.