Sha256: c9c4178015f2a0e02e5f4044710a187415897e33a00b38eb1632d906818a5dc6

Contents?: true

Size: 341 Bytes

Versions: 37

Compression:

Stored size: 341 Bytes

Contents

shared_examples_for "a hash-only command" do
  it "raises an error for non-hash values" do
    key = 'mock-redis-test:hash-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

Version Path
mock_redis-0.13.2 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.13.1 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.13.0 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.12.1 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.12.0 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.11.0 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.10.0 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.9.0 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.8.2 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.8.1 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.8.0 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.7.0 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.6.6 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.6.5 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.6.4 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.6.3 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.6.2 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.6.1 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.6.0 spec/support/shared_examples/only_operates_on_hashes.rb
mock_redis-0.5.5 spec/support/shared_examples/only_operates_on_hashes.rb