Merge pull request #47651 from rrunyon/assert-deprecation-warning

Add missing deprecation warning assertion in test
This commit is contained in:
Jean Boussier 2023-03-13 14:01:48 +01:00 committed by GitHub
commit 08b2dd6ae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,10 +37,12 @@ def test_mem_cache_fragment_cache_store
def test_mem_cache_fragment_cache_store_with_given_mem_cache
mem_cache = Dalli::Client.new
assert_not_called(Dalli::Client, :new) do
assert_deprecated(ActiveSupport.deprecator) do
store = ActiveSupport::Cache.lookup_store :mem_cache_store, mem_cache
assert_kind_of(ActiveSupport::Cache::MemCacheStore, store)
end
end
end
def test_mem_cache_fragment_cache_store_with_not_dalli_client
assert_not_called(Dalli::Client, :new) do