Merge pull request #47651 from rrunyon/assert-deprecation-warning
Add missing deprecation warning assertion in test
This commit is contained in:
commit
08b2dd6ae7
@ -37,8 +37,10 @@ def test_mem_cache_fragment_cache_store
|
|||||||
def test_mem_cache_fragment_cache_store_with_given_mem_cache
|
def test_mem_cache_fragment_cache_store_with_given_mem_cache
|
||||||
mem_cache = Dalli::Client.new
|
mem_cache = Dalli::Client.new
|
||||||
assert_not_called(Dalli::Client, :new) do
|
assert_not_called(Dalli::Client, :new) do
|
||||||
store = ActiveSupport::Cache.lookup_store :mem_cache_store, mem_cache
|
assert_deprecated(ActiveSupport.deprecator) do
|
||||||
assert_kind_of(ActiveSupport::Cache::MemCacheStore, store)
|
store = ActiveSupport::Cache.lookup_store :mem_cache_store, mem_cache
|
||||||
|
assert_kind_of(ActiveSupport::Cache::MemCacheStore, store)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user