Sha256: f451218288397ed9b4306e67f544d049681ae92b184625e2211ae3b72a768d8a

Contents?: true

Size: 261 Bytes

Versions: 4

Compression:

Stored size: 261 Bytes

Contents

require 'cache_test'

class ThreadSafeCacheTest < CacheTest
  def setup
    @c = LruRedux::ThreadSafeCache.new(3)
  end

  def test_recursion
      @c[:a] = 1
      @c[:b] = 2

      # should not blow up
      @c.each do |k,v|
        @c[k]
      end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lru_redux-0.8.4 test/thread_safe_cache_test.rb
lru_redux-0.8.3 test/thread_safe_cache_test.rb
lru_redux-0.8.2 test/thread_safe_cache_test.rb
lru_redux-0.8.1 test/thread_safe_cache_test.rb