Method: ErrorTest#test_code
- Defined in:
- lib/vendor/xmpp4r/test/tc_errors.rb
#test_code ⇒ Object
102 103 104 105 106 107 108 109 110 |
# File 'lib/vendor/xmpp4r/test/tc_errors.rb', line 102 def test_code e = ErrorResponse.new assert_nil(e.code) e.code = 404 assert_equal(404, e.code) assert_equal("<error code='404'/>", e.to_s) e.code = nil assert_nil(e.code) end |