Sha256: afeb4782cf9e740e11b90a0d73834f322a3f0cadee3cfeb1221b43604fe360e8

Contents?: true

Size: 417 Bytes

Versions: 11

Compression:

Stored size: 417 Bytes

Contents

# encoding: UTF-8

require "helper"
require "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

11 entries across 11 versions & 3 rubygems

Version Path
redis-3.0.5 test/commands_on_hashes_test.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/redis-3.0.4/test/commands_on_hashes_test.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/redis-3.0.4/test/commands_on_hashes_test.rb
redis-3.0.4 test/commands_on_hashes_test.rb
redis-3.0.3 test/commands_on_hashes_test.rb
remq-0.0.4 vendor/bundle/gems/redis-3.0.2/test/commands_on_hashes_test.rb
remq-0.0.3 vendor/bundle/gems/redis-3.0.2/test/commands_on_hashes_test.rb
redis-3.0.2 test/commands_on_hashes_test.rb
redis-3.0.1 test/commands_on_hashes_test.rb
redis-3.0.0 test/commands_on_hashes_test.rb
redis-3.0.0.rc2 test/commands_on_hashes_test.rb