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.6.0 lib/mock_redis/assertions.rb
mock_redis-0.5.5 lib/mock_redis/assertions.rb
mock_redis-0.5.4 lib/mock_redis/assertions.rb
mock_redis-0.5.3 lib/mock_redis/assertions.rb
mock_redis-0.5.2 lib/mock_redis/assertions.rb
mock_redis-0.5.1 lib/mock_redis/assertions.rb
mock_redis-0.5.0 lib/mock_redis/assertions.rb