Sha256: 0a44b45b18a0ce84f2ab9434cb12e5043978aed097339dbff107dde7ea3114a3
Contents?: true
Size: 402 Bytes
Versions: 1
Compression:
Stored size: 402 Bytes
Contents
require "spec_helper" describe ChattyProc::PipeServer do before do @ps = ChattyProc::PipeServer.new end it "can send and respond to messages" do test_message = "This is a test" fork do @ps.callee! message = @ps.read @ps.write(message) end @ps.caller! @ps.write(test_message) response = @ps.read expect(response).to eq(test_message) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chattyproc-1.0.0 | spec/pipe_server_spec.rb |