X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dc2a2c8ebd1a11e4a64555fda22c6859a51defff..35fbcf28154b6f15f697018016fbabc952e018a5:/test/models/node_test.rb?ds=inline diff --git a/test/models/node_test.rb b/test/models/node_test.rb index 113753d5a..c9a897796 100644 --- a/test/models/node_test.rb +++ b/test/models/node_test.rb @@ -271,11 +271,11 @@ class NodeTest < ActiveSupport::TestCase message_create = assert_raise(OSM::APIBadXMLError) do Node.from_xml(no_node, true) end - assert_match /XML doesn't contain an osm\/node element/, message_create.message + assert_match %r{XML doesn't contain an osm/node element}, message_create.message message_update = assert_raise(OSM::APIBadXMLError) do Node.from_xml(no_node, false) end - assert_match /XML doesn't contain an osm\/node element/, message_update.message + assert_match %r{XML doesn't contain an osm/node element}, message_update.message end def test_from_xml_no_k_v