Sha256: ef78768f8d8af2d81fa563395d82c5bafe13a4b0592e5fcf372dc042aefead90

Contents?: true

Size: 393 Bytes

Versions: 51

Compression:

Stored size: 393 Bytes

Contents

# encoding: UTF-8

require File.expand_path("./helper", File.dirname(__FILE__))

setup do
  init Redis.new(OPTIONS)
end

load './test/lint/hashes.rb'

test "Mapped HMGET in a pipeline returns plain array" do |r|
  r.hset("foo", "f1", "s1")
  r.hset("foo", "f2", "s2")

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

  assert result[0] == ["s1", "s2"]
end

Version data entries

51 entries across 51 versions & 6 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.7.5 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.7.4 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.7.3 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.7.2 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.7.1 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.7.0 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.6.9 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.6.8 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.6.7 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.6.6 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.6.5 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.6.4 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.6.3 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.6.2 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.6.1 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.6.0 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.5.17 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.5.16 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb
classiccms-0.5.15 vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb