test/store_test.rb in cache_keeper-0.4.1 vs test/store_test.rb in cache_keeper-0.5.0

- old
+ new

@@ -9,10 +9,10 @@ assert_equal autorefreshed_cached_method, store.find_by(String, :really_slow_method) end test "#autorefreshed returns only the ones with the correct option" do cached_method = CacheKeeper::CachedMethod.new(String, :slow_method, {}) - autorefreshed_cached_method = CacheKeeper::CachedMethod.new(String, :really_slow_method, { autorefresh: true }) + autorefreshed_cached_method = CacheKeeper::CachedMethod.new(String, :really_slow_method, {}, &proc {}) store = CacheKeeper::Store.new([cached_method, autorefreshed_cached_method]) assert_equal [autorefreshed_cached_method], store.autorefreshed end end