Sha256: c40baae95826b06a745df77bf1a89e8b9733b189dc00b52a1cfdaa12c16094f8

Contents?: true

Size: 240 Bytes

Versions: 27

Compression:

Stored size: 240 Bytes

Contents

class MockRedis
  module Assertions
    private

    def assert_has_args(args, command)
      unless args.any?
        raise Redis::CommandError,
        "ERR wrong number of arguments for '#{command}' command"
      end
    end

  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
mock_redis-0.14.1 lib/mock_redis/assertions.rb
mock_redis-0.14.0 lib/mock_redis/assertions.rb
mock_redis-0.13.2 lib/mock_redis/assertions.rb
mock_redis-0.13.1 lib/mock_redis/assertions.rb
mock_redis-0.13.0 lib/mock_redis/assertions.rb
mock_redis-0.12.1 lib/mock_redis/assertions.rb
mock_redis-0.12.0 lib/mock_redis/assertions.rb
mock_redis-0.11.0 lib/mock_redis/assertions.rb
mock_redis-0.10.0 lib/mock_redis/assertions.rb
mock_redis-0.9.0 lib/mock_redis/assertions.rb
mock_redis-0.8.2 lib/mock_redis/assertions.rb
mock_redis-0.8.1 lib/mock_redis/assertions.rb
mock_redis-0.8.0 lib/mock_redis/assertions.rb
mock_redis-0.7.0 lib/mock_redis/assertions.rb
mock_redis-0.6.6 lib/mock_redis/assertions.rb
mock_redis-0.6.5 lib/mock_redis/assertions.rb
mock_redis-0.6.4 lib/mock_redis/assertions.rb
mock_redis-0.6.3 lib/mock_redis/assertions.rb
mock_redis-0.6.2 lib/mock_redis/assertions.rb
mock_redis-0.6.1 lib/mock_redis/assertions.rb