Sha256: 5dd667179506a31a003fd7f5d8c2b83fe3646c45ab3acc47b57817b692361243

Contents?: true

Size: 504 Bytes

Versions: 4

Compression:

Stored size: 504 Bytes

Contents

require File.expand_path("../../spec_helper", __FILE__)

describe RedisRing::MasterRPC do

  before(:each) do
    @http_client = FakeHttpClient.new
    @host = "example.com"
    @port = 666
    @rpc = RedisRing::MasterRPC.new(@http_client).connection(@host, @port)
  end

  describe :node_joined do
    it "should post to node joined url" do
      @rpc.node_loaded("some_node_id")

      @http_client.sent_post?("http://example.com:666/master/node_joined/some_node_id").should be_true
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

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