test/readonly_test.rb in identity_cache-0.4.0 vs test/readonly_test.rb in identity_cache-0.4.1
- old
+ new
@@ -33,10 +33,10 @@
end
def test_clear_should_update_cache
backend.write(@key, @value)
fetcher.clear
- assert_equal nil, backend.read(@key)
+ assert_nil backend.read(@key)
end
def test_fetch_should_not_update_cache
fetch = Spy.on(IdentityCache.cache, :fetch).and_call_through
Item.expects(:resolve_cache_miss).with(1).once.returns(@record)