X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5d0ea2879632a950405c40823503640cbec65e8f..3128aabbfd1cbd2f66ebf1f9681022f0c3a6b126:/test/models/way_test.rb
diff --git a/test/models/way_test.rb b/test/models/way_test.rb
index 4519ebba8..6abf99c57 100644
--- a/test/models/way_test.rb
+++ b/test/models/way_test.rb
@@ -42,7 +42,7 @@ class WayTest < ActiveSupport::TestCase
def test_from_xml_no_id
noid = ""
- assert_nothing_raised(OSM::APIBadXMLError) do
+ assert_nothing_raised do
Way.from_xml(noid, true)
end
message = assert_raise(OSM::APIBadXMLError) do
@@ -65,7 +65,7 @@ class WayTest < ActiveSupport::TestCase
def test_from_xml_no_version
no_version = ""
- assert_nothing_raised(OSM::APIBadXMLError) do
+ assert_nothing_raised do
Way.from_xml(no_version, true)
end
message_update = assert_raise(OSM::APIBadXMLError) do
@@ -78,7 +78,7 @@ class WayTest < 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
Way.from_xml(zero_id, true)
end
message_update = assert_raise(OSM::APIBadUserInput) do