test/test_anonymous.rb in stomp-1.3.5 vs test/test_anonymous.rb in stomp-1.4.0

- old
+ new

@@ -201,15 +201,15 @@ assert_raise Stomp::Error::NoCurrentConnection do @conn.disconnect("dummy_data") end # assert_raise Stomp::Error::NoCurrentConnection do - m = @conn.receive + _ = @conn.receive end # assert_raise Stomp::Error::NoCurrentConnection do - m = @conn.poll + _ = @conn.poll end end # Test that we receive a Stomp::Message. def test_response_is_instance_of_message_class @@ -223,11 +223,11 @@ # Test converting a Message to a string. def test_message_to_s conn_subscribe make_destination @conn.publish make_destination, "a\0" msg = @conn.receive - assert_match /^<Stomp::Message headers=/ , msg.to_s + assert_match(/^<Stomp::Message headers=/ , msg.to_s) checkEmsg(@conn) end # Test that a connection frame is present. def test_connection_frame @@ -307,10 +307,10 @@ dest = make_destination # 1.upto(@max_threads) do |tnum| Thread.new(@conn) do |amq| while true - received = amq.receive + _ = amq.receive lock.synchronize do msg_ctr += 1 end # Simulate message processing sleep 0.05