Sha256: 816a853fac1a8b4b8f2aab9bd84cb055f9a6de78f8663a50740edb25b877bfa9
Contents?: true
Size: 360 Bytes
Versions: 13
Compression:
Stored size: 360 Bytes
Contents
shared_examples_for 'a list-only command' do it 'raises an error for non-list values' do |example| key = 'mock-redis-test:list-only' method = method_from_description(example) 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
13 entries across 13 versions & 1 rubygems