aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-08-06 11:18:41 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-08-06 11:18:41 +0900
commit47af906641a1764a2b75f9c1fc9919c8547cea14 (patch)
treeedbfb13ac564fbe90fe98ddc474994252384815c /test
parentd011129485d26132244889f579fbd8dad4b3be73 (diff)
downloadplum-47af906641a1764a2b75f9c1fc9919c8547cea14.tar.gz
test: add test for ServerConnection#ping
Diffstat (limited to 'test')
-rw-r--r--test/plum/test_server_connection_helper.rb10
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