Sha256: 0be78ca53083bb177b8eb0f365cb95aeac811fad0a698bf434a8f8089b645e26
Contents?: true
Size: 463 Bytes
Versions: 4
Compression:
Stored size: 463 Bytes
Contents
shared_examples_for 'does not remove empty strings on error' do it 'does not remove empty strings on error' do |example| key = 'mock-redis-test:not-a-string' method = method_from_description(example) args = args_for_method(method).unshift(key) @redises.set(key, '') lambda do @redises.send(method, *args) end.should raise_error(defined?(default_error) ? default_error : RuntimeError) @redises.get(key).should == '' end end
Version data entries
4 entries across 4 versions & 1 rubygems