Sha256: fedc599ae3a4c3571b1581f1b01dcc46216cf0d87f7f39abfc62cd8bde396437

Contents?: true

Size: 459 Bytes

Versions: 23

Compression:

Stored size: 459 Bytes

Contents

# encoding: UTF-8

require File.expand_path("helper", File.dirname(__FILE__))
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

23 entries across 22 versions & 8 rubygems

Version Path
finsync_redis-3.3.5 test/commands_on_hashes_test.rb
redis-3.3.5 test/commands_on_hashes_test.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/commands_on_hashes_test.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/commands_on_hashes_test.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/commands_on_hashes_test.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/commands_on_hashes_test.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/redis-3.3.3/test/commands_on_hashes_test.rb
redis-3.3.3 test/commands_on_hashes_test.rb
abaci-0.3.0 vendor/bundle/gems/redis-3.3.1/test/commands_on_hashes_test.rb
abaci-0.3.0 vendor/bundle/gems/redis-3.3.2/test/commands_on_hashes_test.rb
redis-3.3.2 test/commands_on_hashes_test.rb
redis-3.3.1 test/commands_on_hashes_test.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/redis-3.3.0/test/commands_on_hashes_test.rb
redis-3.3.0 test/commands_on_hashes_test.rb
discourse-redis-3.2.2 test/commands_on_hashes_test.rb
redis-3.2.2 test/commands_on_hashes_test.rb
redis-3.2.1 test/commands_on_hashes_test.rb
redis-3.2.0 test/commands_on_hashes_test.rb
redis2-namespaced-3.0.7.1 test/commands_on_hashes_test.rb
redis2-namespaced-3.0.7 test/commands_on_hashes_test.rb