Class: IqQueryTest
Instance Method Summary
collapse
#assert_array_equal, expect, #run
Instance Method Details
#test_create ⇒ Object
11
12
13
14
15
|
# File 'lib/gems/xmpp4r-0.4/test/tc_iqquery.rb', line 11
def test_create
x = IqQuery.new()
assert_equal("query", x.name)
assert_equal("<query/>", x.to_s)
end
|
#test_import ⇒ Object
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/gems/xmpp4r-0.4/test/tc_iqquery.rb', line 17
def test_import
q = IqQuery.new
assert_equal(IqQuery, q.class)
e = REXML::Element.new('query')
e.add_namespace('jabber:iq:roster')
assert_kind_of(IqQuery, IqQuery.import(e))
end
|