Sha256: 416f3b5861d22eb52d04a82f3d2d85933eedf496f59c679d3e48fe3a45e056c5

Contents?: true

Size: 291 Bytes

Versions: 4

Compression:

Stored size: 291 Bytes

Contents

class FakeMasterRPC

  def connection(host, port)
    @connections ||= {}
    @connections["#{host}:#{port}"] ||= Connection.new
  end

  class Connection

    def nodes_loaded
      @node_loaded ||= []
    end

    def node_loaded(node_id)
      nodes_loaded << node_id
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
redis_ring-0.1.3 spec/fakes/fake_master_rpc.rb
redis_ring-0.1.2 spec/fakes/fake_master_rpc.rb
redis_ring-0.1.1 spec/fakes/fake_master_rpc.rb
redis_ring-0.1.0 spec/fakes/fake_master_rpc.rb