Sha256: 66511c4b8dd31fd28678a815f1ad651eaff07518b66f2c158b224f98077a028d

Contents?: true

Size: 337 Bytes

Versions: 5

Compression:

Stored size: 337 Bytes

Contents

require_relative "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

5 entries across 5 versions & 1 rubygems

Version Path
redis-4.0.3 test/distributed_connection_handling_test.rb
redis-4.1.0.beta1 test/distributed_connection_handling_test.rb
redis-4.0.2 test/distributed_connection_handling_test.rb
redis-4.0.1 test/distributed_connection_handling_test.rb
redis-4.0.0 test/distributed_connection_handling_test.rb