aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/middleware
diff options
context:
space:
mode:
authorBrian Durand <brian@embellishedvisions.com>2011-12-12 13:40:29 -0600
committerBrian Durand <brian@embellishedvisions.com>2011-12-12 13:40:29 -0600
commit04d5eae4e835ead8ef785de4eb442893426f4b29 (patch)
tree3ce45567f9f9a64d88278f58e0907efbb558a5db /railties/test/application/middleware
parent2fdc3ab0f10c6614f37621847ff92e8e17283df5 (diff)
downloadrails-04d5eae4e835ead8ef785de4eb442893426f4b29.tar.gz
rails-04d5eae4e835ead8ef785de4eb442893426f4b29.tar.bz2
rails-04d5eae4e835ead8ef785de4eb442893426f4b29.zip
Add ActiveSupport::Cache::NullStore to expose caching interface without actually caching for development and test environments.
Diffstat (limited to 'railties/test/application/middleware')
-rw-r--r--railties/test/application/middleware/cache_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/middleware/cache_test.rb b/railties/test/application/middleware/cache_test.rb
index 050a2161ae..790c5b2d53 100644
--- a/railties/test/application/middleware/cache_test.rb
+++ b/railties/test/application/middleware/cache_test.rb
@@ -54,9 +54,9 @@ module ApplicationTests
def test_cache_keeps_if_modified_since
simple_controller
expected = "Wed, 30 May 1984 19:43:31 GMT"
-
+
get "/expires/keeps_if_modified_since", {}, "HTTP_IF_MODIFIED_SINCE" => expected
-
+
assert_equal 200, last_response.status
assert_equal expected, last_response.body, "cache should have kept If-Modified-Since"
end