X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5d0ea2879632a950405c40823503640cbec65e8f..124ec2e9d560e0df291e5a8e5aa67ef5db2f5d46:/test/models/relation_test.rb diff --git a/test/models/relation_test.rb b/test/models/relation_test.rb index d422738bf..b06cbd9b8 100644 --- a/test/models/relation_test.rb +++ b/test/models/relation_test.rb @@ -3,7 +3,7 @@ require "test_helper" class RelationTest < ActiveSupport::TestCase def test_from_xml_no_id noid = "" - assert_nothing_raised(OSM::APIBadXMLError) do + assert_nothing_raised do Relation.from_xml(noid, true) end message = assert_raise(OSM::APIBadXMLError) do @@ -26,7 +26,7 @@ class RelationTest < ActiveSupport::TestCase def test_from_xml_no_version no_version = "" - assert_nothing_raised(OSM::APIBadXMLError) do + assert_nothing_raised do Relation.from_xml(no_version, true) end message_update = assert_raise(OSM::APIBadXMLError) do @@ -39,7 +39,7 @@ class RelationTest < 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 Relation.from_xml(zero_id, true) end message_update = assert_raise(OSM::APIBadUserInput) do