Sha256: 9e9616a328f27cbe6014e239d71537480a69050b772b75105919d847b93e34cb

Contents?: true

Size: 421 Bytes

Versions: 16

Compression:

Stored size: 421 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(RuntimeError)
    @redises.get(key).should == ''
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mock_redis-0.32.0 spec/support/shared_examples/does_not_cleanup_empty_strings.rb
mock_redis-0.31.0 spec/support/shared_examples/does_not_cleanup_empty_strings.rb
mock_redis-0.30.0 spec/support/shared_examples/does_not_cleanup_empty_strings.rb
mock_redis-0.29.0 spec/support/shared_examples/does_not_cleanup_empty_strings.rb
mock_redis-0.28.0 spec/support/shared_examples/does_not_cleanup_empty_strings.rb
mock_redis-0.27.3 spec/support/shared_examples/does_not_cleanup_empty_strings.rb
mock_redis-0.27.2 spec/support/shared_examples/does_not_cleanup_empty_strings.rb
mock_redis-0.27.1 spec/support/shared_examples/does_not_cleanup_empty_strings.rb
mock_redis-0.27.0 spec/support/shared_examples/does_not_cleanup_empty_strings.rb
mock_redis-0.26.0 spec/support/shared_examples/does_not_cleanup_empty_strings.rb
mock_redis-0.25.0 spec/support/shared_examples/does_not_cleanup_empty_strings.rb
mock_redis-0.24.0 spec/support/shared_examples/does_not_cleanup_empty_strings.rb
mock_redis-0.23.0 spec/support/shared_examples/does_not_cleanup_empty_strings.rb
mock_redis-0.22.0 spec/support/shared_examples/does_not_cleanup_empty_strings.rb
mock_redis-0.21.0 spec/support/shared_examples/does_not_cleanup_empty_strings.rb
mock_redis-0.20.0 spec/support/shared_examples/does_not_cleanup_empty_strings.rb