Skip to content

Commit

Permalink
Flatten kvpairs before assert
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Luckett committed Oct 8, 2019
1 parent 412b34b commit 4033b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mock_redis/hash_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def hmset(key, *kvpairs)
key = key[0]
end

assert_has_args(kvpairs, 'hmset')
kvpairs.flatten!
assert_has_args(kvpairs, 'hmset')

if kvpairs.length.odd?
raise Redis::CommandError, 'ERR wrong number of arguments for HMSET'
Expand Down

0 comments on commit 4033b0e

Please sign in to comment.