Method: ErrorTest#test_sample_normal

Defined in:
lib/vendor/xmpp4r/test/tc_errors.rb

#test_sample_normalObject



129
130
131
132
133
134
135
136
# File 'lib/vendor/xmpp4r/test/tc_errors.rb', line 129

def test_sample_normal
  src = '<error code="302" type="modify"><gone xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">...</text></error>'
  e = ErrorResponse.new.import(REXML::Document.new(src).root)
  assert_equal(:modify, e.type)
  assert_equal(302, e.code)
  assert_equal('gone', e.error)
  assert_equal('...', e.text)
end