Method: ErrorTest#test_type
- Defined in:
- lib/vendor/xmpp4r/test/tc_errors.rb
#test_type ⇒ Object
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/vendor/xmpp4r/test/tc_errors.rb', line 85 def test_type e = ErrorResponse.new assert_nil(e.type) e.type = :auth assert_equal(:auth, e.type) e.type = :cancel assert_equal(:cancel, e.type) e.type = :continue assert_equal(:continue, e.type) e.type = :modify assert_equal(:modify, e.type) e.type = :wait assert_equal(:wait, e.type) e.type = nil assert_nil(e.type) end |