Commit 4b892cc2 authored by Rajko Albrecht's avatar Rajko Albrecht
Browse files

Add tests for correct code patching

parent d80c8322
......@@ -18,6 +18,13 @@ describe "ActiveSupport::Cache::RedisStoreWithCas" do
@dstore.instance_variable_get("@data").flushdb
end
describe "Including into cache" do
it "should not done with distributed store" do
refute @dstore.candocas?
assert @store.candocas?
end
end
describe "Single cas " do
it "should not swap missing key" do
refute @store.cas('rabbit') { |_value| flunk }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment