Sha256: 3080181f4e3d81f6f0400bd0b2cf0381663f54b730cd9d468a241a90e935a796

Contents?: true

Size: 347 Bytes

Versions: 11

Compression:

Stored size: 347 Bytes

Contents

# encoding: UTF-8

require "helper"

class TestDistributedConnectionHandling < Test::Unit::TestCase

  include Helper::Distributed

  def test_ping
    assert_equal ["PONG"], r.ping
  end

  def test_select
    r.set "foo", "bar"

    r.select 14
    assert_equal nil, r.get("foo")

    r.select 15

    assert_equal "bar", r.get("foo")
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

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