def test_conn10_simple
@conn.disconnect
vhost = ENV['STOMP_RABBIT'] ? "/" : host
hash = { :hosts => [
{:host => host, :port => port, :ssl => false},
],
:connect_headers => {"accept-version" => "1.0", "host" => vhost},
:reliable => false,
}
c = nil
assert_nothing_raised {
c = Stomp::Connection.new(hash)
}
c.disconnect if c
hash = { :hosts => [
{:host => host, :port => port, :ssl => false},
],
:connect_headers => {"accept-version" => "3.14159,1.0,12.0", "host" => vhost},
:reliable => false,
}
c = nil
assert_nothing_raised {
c = Stomp::Connection.new(hash)
}
c.disconnect if c
end