Sha256: 3c80349d9e3ecf92db7281a0a99cba52d74d96fad1b829271c3cb275db27b653

Contents?: true

Size: 378 Bytes

Versions: 3

Compression:

Stored size: 378 Bytes

Contents

# encoding: UTF-8

require "helper"

class TestDistributedInternals < Test::Unit::TestCase

  include Helper::Distributed

  def test_provides_a_meaningful_inspect
    nodes = ["redis://localhost:#{PORT}/15", *NODES]
    redis = Redis::Distributed.new nodes

    assert_equal "#<Redis client v#{Redis::VERSION} for #{redis.nodes.map(&:id).join(', ')}>", redis.inspect
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redis-3.0.1 test/distributed_internals_test.rb
redis-3.0.0 test/distributed_internals_test.rb
redis-3.0.0.rc2 test/distributed_internals_test.rb