test/test_helper.rb in stomp-1.2.1 vs test/test_helper.rb in stomp-1.2.2
- old
+ new
@@ -54,11 +54,12 @@
conn
end
def get_ssl_connection()
ch = get_conn_headers()
+ ssl_params = Stomp::SSLParams.new # S/B safe for all Ruby versions tested
hash = { :hosts => [
- {:login => user, :passcode => passcode, :host => host, :port => ssl_port, :ssl => true},
+ {:login => user, :passcode => passcode, :host => host, :port => ssl_port, :ssl => ssl_params},
],
:connect_headers => ch
}
conn = Stomp::Connection.new(hash)
conn