# File test/test_connection1p.rb, line 74 def test_conn_1p_0020 @conn.disconnect # cha = {:host => "localhost", "accept-version" => "1.0"} cha[:host] = "/" if ENV['STOMP_RABBIT'] conn = nil assert_nothing_raised do conn = Stomp::Connection.open(user, passcode, host, port, false, 5, cha) conn.disconnect end assert_equal conn.protocol, Stomp::SPL_10 end