Sha256: 3d5217e9c18d9fc8aea14527c5b94f4c9e125ae6db724890c9d17ffb536dd9f7
Contents?: true
Size: 311 Bytes
Versions: 4
Compression:
Stored size: 311 Bytes
Contents
require_relative 'test_helper' class CacheTest < Test::Unit::TestCase def test_caching App::Cache.clear done = 0 r = App.cached("six") { done += 1; 2 * 3 } assert_equal([1, 6], [done, r]) r = App.cached("six") { done += 1; 2 * 3 } assert_equal([1, 6], [done, r]) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
radiospieler-0.3.4 | test/cache_test.rb |
radiospieler-0.3.3 | test/cache_test.rb |
radiospieler-0.3.2 | test/cache_test.rb |
radiospieler-0.3.1 | test/cache_test.rb |