Sha256: b9ad75b1b2be704b94c70c1e29f22788e13a3a14af20a85939d735e3856f225a
Contents?: true
Size: 338 Bytes
Versions: 37
Compression:
Stored size: 338 Bytes
Contents
shared_examples_for "a set-only command" do it "raises an error for non-set values" do key = 'mock-redis-test:set-only' method = method_from_description args = args_for_method(method).unshift(key) @redises.set(key, 1) lambda do @redises.send(method, *args) end.should raise_error(RuntimeError) end end
Version data entries
37 entries across 37 versions & 2 rubygems