Method: Roster::IqQueryRosterTest#test_import

Defined in:
lib/vendor/xmpp4r/test/roster/tc_iqqueryroster.rb

#test_importObject



21
22
23
24
25
26
27
28
# File 'lib/vendor/xmpp4r/test/roster/tc_iqqueryroster.rb', line 21

def test_import
  iq = Iq.new
  q = REXML::Element.new('query')
  q.add_namespace('jabber:iq:roster')
  iq.add(q)
  iq2 = Iq.new.import(iq)
  assert_equal(Roster::IqQueryRoster, iq2.query.class)
end