diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/plum/test_server_connection_helper.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/plum/test_server_connection_helper.rb b/test/plum/test_server_connection_helper.rb index 27578f2..2bd5414 100644 --- a/test/plum/test_server_connection_helper.rb +++ b/test/plum/test_server_connection_helper.rb @@ -15,4 +15,14 @@ class ServerConnectionHelperTest < Minitest::Test } end + def test_server_ping + open_server_connection {|con| + con.ping("ABCABCAB") + + last = sent_frames.last + assert_equal(:ping, last.type) + assert_equal([], last.flags) + assert_equal("ABCABCAB", last.payload) + } + end end |