diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2016-02-18 09:23:59 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2016-02-18 09:23:59 -0800 |
commit | 3bd9fe1708018e4e82f5d836cc6e047d9d9b5b55 (patch) | |
tree | 831d9c6d3379747174c2ea2e0b9d572f623c9764 /railties/test/application | |
parent | cbaae13430a90fdb24b1f54a52501d88828af723 (diff) | |
parent | 3239ed48d28f3c0baf4445e6c279107e892b7cab (diff) | |
download | rails-3bd9fe1708018e4e82f5d836cc6e047d9d9b5b55.tar.gz rails-3bd9fe1708018e4e82f5d836cc6e047d9d9b5b55.tar.bz2 rails-3bd9fe1708018e4e82f5d836cc6e047d9d9b5b55.zip |
Merge pull request #23756 from tenderlove/move_digest_cache
move digest cache on to the DetailsKey object
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/per_request_digest_cache_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/railties/test/application/per_request_digest_cache_test.rb b/railties/test/application/per_request_digest_cache_test.rb index 3198e12662..210646c7c0 100644 --- a/railties/test/application/per_request_digest_cache_test.rb +++ b/railties/test/application/per_request_digest_cache_test.rb @@ -50,12 +50,13 @@ class PerRequestDigestCacheTest < ActiveSupport::TestCase get '/customers' assert_equal 200, last_response.status - assert_equal [ '8ba099b7749542fe765ff34a6824d548' ], ActionView::Digestor.cache.values + values = ActionView::LookupContext::DetailsKey.digest_caches.first.values + assert_equal [ '8ba099b7749542fe765ff34a6824d548' ], values assert_equal %w(david dingus), last_response.body.split.map(&:strip) end test "template digests are cleared before a request" do - assert_called(ActionView::Digestor.cache, :clear) do + assert_called(ActionView::LookupContext::DetailsKey, :clear) do get '/customers' assert_equal 200, last_response.status end |