Method: IqTest#test_types
- Defined in:
- lib/vendor/xmpp4r/test/tc_iq.rb
#test_types ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/vendor/xmpp4r/test/tc_iq.rb', line 56 def test_types iq = Iq.new assert_equal(nil, iq.type) iq.type = :get assert_equal(:get, iq.type) iq.type = :set assert_equal(:set, iq.type) iq.type = :result assert_equal(:result, iq.type) iq.type = :error assert_equal(:error, iq.type) iq.type = :invalid assert_equal(nil, iq.type) end |