- message_create = assert_raise(OSM::APIBadXMLError) {
- Changeset.from_xml(no_text, true)
- }
- assert_match /Must specify a string with one or more characters/, message_create.message
- message_update = assert_raise(OSM::APIBadXMLError) {
- Changeset.from_xml(no_text, false)
- }
- assert_match /Must specify a string with one or more characters/, message_update.message
+ message_create = assert_raise(OSM::APIBadXMLError) do
+ Changeset.from_xml(no_text, :create => true)
+ end
+ assert_match(/Must specify a string with one or more characters/, message_create.message)
+ message_update = assert_raise(OSM::APIBadXMLError) do
+ Changeset.from_xml(no_text, :create => false)
+ end
+ assert_match(/Must specify a string with one or more characters/, message_update.message)