Merge pull request #47651 from rrunyon/assert-deprecation-warning
Add missing deprecation warning assertion in test
This commit is contained in:
commit
08b2dd6ae7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user