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

  @buffer = StringIO.new
  @cache.logger = ActiveSupport::Logger.new(@buffer)
end
test_logging()
# File activesupport/test/caching_test.rb, line 1027
def test_logging
  @cache.fetch('foo') { 'bar' }
  assert @buffer.string.present?
end
test_mute_logging()
# File activesupport/test/caching_test.rb, line 1032
def test_mute_logging
  @cache.mute { @cache.fetch('foo') { 'bar' } }
  assert @buffer.string.blank?
end