Sha256: 827965c933f2a2ecfa2af9fb92ef76be69a89e6dfde05eac07da5898e439cbea
Contents?: true
Size: 1.58 KB
Versions: 3
Compression:
Stored size: 1.58 KB
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' require File.expand_path('../test_broker', __FILE__) describe OnStomp::Client, "full stack test (stomp+ssl:)", :fullstack => true do describe "STOMP 1.0" do let(:broker) { TestBroker.new 10101 } before(:each) do broker.start end after(:each) do broker.stop end describe "connecting" do it "should connect to the broker given a CA path" do client = OnStomp::Client.new('stomp://localhost:10101') client.connect client.send '/queue/test', 'my message body', { "this:is\na \\fun\\ header" => 'blather matter' } client.send '/queue/test', "\x01\x02\x03\x04\x05\x06".encode('BINARY'), :'content-type' => 'application/octet-stream' client.disconnect broker.join end end end describe "STOMP 1.1" do let(:broker) { TestBroker.new(10101).tap do |b| b.session_class = TestBroker::Session11 end } before(:each) do broker.start end after(:each) do broker.stop end describe "connecting" do it "should connect to the broker given a CA path" do client = OnStomp::Client.new('stomp://localhost:10101') client.connect client.send '/queue/test', 'my message body', { "this:is\na \\fun\\ header" => 'blather matter' } client.send '/queue/test', "\x01\x02\x03\x04\x05\x06".encode('BINARY'), :'content-type' => 'application/octet-stream' client.disconnect broker.join end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
onstomp-1.0.3 | spec/onstomp/full_stacks/onstomp_spec.rb |
onstomp-1.0.2 | spec/onstomp/full_stacks/onstomp_spec.rb |
onstomp-1.0.1 | spec/onstomp/full_stacks/onstomp_spec.rb |