Sha256: a224e2a60d94546b8ac41268b039bd128be6c08128c909a20d13c9eba07b51d4

Contents?: true

Size: 368 Bytes

Versions: 2

Compression:

Stored size: 368 Bytes

Contents

require 'spec_helper'

describe FluQ::Kafka do

  it 'should force celluloid sockets' do
    sock = double(Celluloid::IO::TCPSocket)
    ::TCPSocket.should_not_receive(:new)
    Celluloid::IO::TCPSocket.should_receive(:new).and_return(sock)

    conn = Poseidon::Connection.new "localhost", 9092, "client-id"
    conn.send(:ensure_connected).should == sock
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fluq-kafka-0.8.1 spec/fluq/kafka_spec.rb
fluq-kafka-0.8.0 spec/fluq/kafka_spec.rb