lib/mock_redis/stream.rb in mock_redis-0.26.0 vs lib/mock_redis/stream.rb in mock_redis-0.27.0

- old
+ new

@@ -23,13 +23,10 @@ def add(id, values) @last_id = MockRedis::Stream::Id.new(id, min: @last_id) if @last_id.to_s == '0-0' raise Redis::CommandError, - 'ERR The ID specified in XADD is equal or smaller than ' \ - 'the target stream top item' - # TOOD: Redis version 6.0.4, w redis 4.2.1 generates the following error message: - # 'ERR The ID specified in XADD must be greater than 0-0' + 'ERR The ID specified in XADD must be greater than 0-0' end members.add [@last_id, Hash[values.map { |k, v| [k.to_s, v.to_s] }]] @last_id.to_s end