X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/f8f7054fc2348378dacb244fa4f3192952fb34fe..b00b9ce6265fea04e484e7a0555f9dd37aceb713:/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