# File test/test_connection.rb, line 103 def test_client_ack_with_symbol_11 if @conn.protocol != Stomp::SPL_11 assert true return end sid = @conn.uuid() queue = make_destination() @conn.subscribe queue, :ack => :client, :id => sid @conn.publish queue, "test_stomp#test_client_ack_with_symbol_11" msg = @conn.receive assert_nothing_raised { # ACK has two REQUIRED headers: message-id, which MUST contain a value # matching the message-id for the MESSAGE being acknowledged and # subscription, which MUST be set to match the value of the subscription's # id header. @conn.ack msg.headers['message-id'], :subscription => msg.headers['subscription'] } checkEmsg(@conn) end