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

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