Method: RPC::HelperTest#test_simple
- Defined in:
- lib/vendor/xmpp4r/test/rpc/tc_helper.rb
#test_simple ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/vendor/xmpp4r/test/rpc/tc_helper.rb', line 36 def test_simple give_client_jid! sv = RPC::Server.new(@server) sv.add_handler("echo", &method(:echo)) cl = RPC::Client.new(@client, 'a@b/c') assert_nothing_raised do assert_equal('Test string', cl.call("echo", 'Test string')) end # exception during serialisation bug identified on xmpp4r-devel # https://mail.gna.org/public/xmpp4r-devel/2008-05/msg00010.html assert_raise XMLRPC::FaultException do cl.call("echo") end end |