Sha256: ab4542ed834da1c094ae70a8f7d9e6ed507d0e4f5dd3b4948b09bc7ce31f2147

Contents?: true

Size: 416 Bytes

Versions: 3

Compression:

Stored size: 416 Bytes

Contents

require_relative "helper"
require_relative "lint/hashes"

class TestCommandsOnHashes < Test::Unit::TestCase

  include Helper::Client
  include Lint::Hashes

  def test_mapped_hmget_in_a_pipeline_returns_hash
    r.hset("foo", "f1", "s1")
    r.hset("foo", "f2", "s2")

    result = r.pipelined do
      r.mapped_hmget("foo", "f1", "f2")
    end

    assert_equal result[0], { "f1" => "s1", "f2" => "s2" }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redis-4.0.2 test/commands_on_hashes_test.rb
redis-4.0.1 test/commands_on_hashes_test.rb
redis-4.0.0 test/commands_on_hashes_test.rb