Sha256: 0eef4d4a96cb59247cfbf0c018e7d160a6c6f49016c8a6256342c8f030748ed1

Contents?: true

Size: 376 Bytes

Versions: 33

Compression:

Stored size: 376 Bytes

Contents

shared_examples_for 'a string-only command' do
  it 'raises an error for non-string values' do |example|
    key = 'mock-redis-test:string-only-command'

    method = method_from_description(example)
    args = args_for_method(method).unshift(key)

    @redises.lpush(key, 1)
    lambda do
      @redises.send(method, *args)
    end.should raise_error(RuntimeError)
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
mock_redis-0.19.0 spec/support/shared_examples/only_operates_on_strings.rb
mock_redis-0.18.0 spec/support/shared_examples/only_operates_on_strings.rb
mock_redis-0.17.3 spec/support/shared_examples/only_operates_on_strings.rb
mock_redis-0.17.2 spec/support/shared_examples/only_operates_on_strings.rb
mock_redis-0.17.1 spec/support/shared_examples/only_operates_on_strings.rb
mock_redis-0.17.0 spec/support/shared_examples/only_operates_on_strings.rb
mock_redis-0.16.1 spec/support/shared_examples/only_operates_on_strings.rb
mock_redis-0.16.0 spec/support/shared_examples/only_operates_on_strings.rb
mock_redis-0.15.4 spec/support/shared_examples/only_operates_on_strings.rb
mock_redis-0.15.3 spec/support/shared_examples/only_operates_on_strings.rb
mock_redis-0.15.2 spec/support/shared_examples/only_operates_on_strings.rb
mock_redis-0.15.1 spec/support/shared_examples/only_operates_on_strings.rb
mock_redis-0.15.0 spec/support/shared_examples/only_operates_on_strings.rb