test/caddy_test.rb in caddy-1.5.0 vs test/caddy_test.rb in caddy-1.5.1
- old
+ new
@@ -18,9 +18,10 @@
Caddy[:test].refresher = -> { {foo: "bar"} }
Caddy.start
sleep(0.1)
assert_equal "bar", Caddy[:test][:foo]
+ assert_equal "bar", Caddy[:test].cache[:foo]
end
def test_basic_interval_updating
x = 0
Caddy[:test].refresher = lambda do