Methods
S
T
Instance Public methods
setup()
# File activesupport/test/caching_test.rb, line 805
def setup
  @cache = ActiveSupport::Cache.lookup_store(:memory_store)

  @buffer = StringIO.new
  @cache.logger = Logger.new(@buffer)
end
test_logging()
# File activesupport/test/caching_test.rb, line 812
def test_logging
  @cache.fetch('foo') { 'bar' }
  assert_present @buffer.string
end
test_mute_logging()
# File activesupport/test/caching_test.rb, line 817
def test_mute_logging
  @cache.mute { @cache.fetch('foo') { 'bar' } }
  assert_blank @buffer.string
end