Skip to content

Commit

Permalink
Merge pull request #47651 from rrunyon/assert-deprecation-warning
Browse files Browse the repository at this point in the history
Add missing deprecation warning assertion in test
  • Loading branch information
byroot committed Mar 13, 2023
2 parents 7a8d999 + 98de4c0 commit 08b2dd6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions activesupport/test/cache/cache_store_setting_test.rb
Expand Up @@ -37,8 +37,10 @@ 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
store = ActiveSupport::Cache.lookup_store :mem_cache_store, mem_cache
assert_kind_of(ActiveSupport::Cache::MemCacheStore, store)
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

Expand Down

0 comments on commit 08b2dd6

Please sign in to comment.