aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/caching_test.rb
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-03-03 00:03:56 -0800
committerCarl Lerche <carllerche@mac.com>2010-03-03 21:24:00 -0800
commiteb49bd694997954783632eada901553f041c9507 (patch)
tree4a126c06b200305b3ddb3fec05e7ad880e8ace09 /actionpack/test/controller/caching_test.rb
parentc92d598abff54270337ad1eddf7bc41a71c4cbda (diff)
downloadrails-eb49bd694997954783632eada901553f041c9507.tar.gz
rails-eb49bd694997954783632eada901553f041c9507.tar.bz2
rails-eb49bd694997954783632eada901553f041c9507.zip
Fix tests for the request refactor
Diffstat (limited to 'actionpack/test/controller/caching_test.rb')
-rw-r--r--actionpack/test/controller/caching_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb
index 80c968cc04..37f7483427 100644
--- a/actionpack/test/controller/caching_test.rb
+++ b/actionpack/test/controller/caching_test.rb
@@ -51,6 +51,7 @@ class PageCachingTest < ActionController::TestCase
@request = ActionController::TestRequest.new
@request.host = 'hostname.com'
+ @request.env.delete('PATH_INFO')
@response = ActionController::TestResponse.new
@controller = PageCachingTestController.new
@@ -110,7 +111,7 @@ class PageCachingTest < ActionController::TestCase
end
def test_should_cache_ok_at_custom_path
- @request.request_uri = "/index.html"
+ @request.env['PATH_INFO'] = '/index.html'
get :ok
assert_response :ok
assert File.exist?("#{FILE_STORE_PATH}/index.html")