Method: ErrorTest#test_sample_muc
- Defined in:
- lib/vendor/xmpp4r/test/tc_errors.rb
#test_sample_muc ⇒ Object
138 139 140 141 142 143 144 145 |
# File 'lib/vendor/xmpp4r/test/tc_errors.rb', line 138 def test_sample_muc src = '<error code="409">Please choose a different nickname.</error>' e = ErrorResponse.new.import(REXML::Document.new(src).root) assert_equal(nil, e.type) assert_equal(409, e.code) assert_equal(nil, e.error) assert_equal('Please choose a different nickname.', e.text) end |