X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5d0ea2879632a950405c40823503640cbec65e8f..7377cb63939f8743ca31e67ea3965c2b15d20057:/test/models/node_test.rb diff --git a/test/models/node_test.rb b/test/models/node_test.rb index 6c4717654..a68be4aa9 100644 --- a/test/models/node_test.rb +++ b/test/models/node_test.rb @@ -166,7 +166,7 @@ class NodeTest < ActiveSupport::TestCase version = 1 noid = "" # First try a create which doesn't need the id - assert_nothing_raised(OSM::APIBadXMLError) do + assert_nothing_raised do Node.from_xml(noid, true) end # Now try an update with no id, and make sure that it gives the appropriate exception @@ -214,7 +214,7 @@ class NodeTest < ActiveSupport::TestCase def test_from_xml_no_version no_version = "" - assert_nothing_raised(OSM::APIBadXMLError) do + assert_nothing_raised do Node.from_xml(no_version, true) end message_update = assert_raise(OSM::APIBadXMLError) do @@ -239,7 +239,7 @@ class NodeTest < ActiveSupport::TestCase id_list = ["", "0", "00", "0.0", "a"] id_list.each do |id| zero_id = "" - assert_nothing_raised(OSM::APIBadUserInput) do + assert_nothing_raised do Node.from_xml(zero_id, true) end message_update = assert_raise(OSM::APIBadUserInput) do