X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e9fa94bce22cb25138e051e8446388359de03678..fb94bb6c581a2bd3bc437e7705e3efcecbe79c72:/test/models/relation_test.rb
diff --git a/test/models/relation_test.rb b/test/models/relation_test.rb
index cb0d54a9b..b06cbd9b8 100644
--- a/test/models/relation_test.rb
+++ b/test/models/relation_test.rb
@@ -1,15 +1,9 @@
require "test_helper"
class RelationTest < ActiveSupport::TestCase
- api_fixtures
-
- def test_relation_count
- assert_equal 8, Relation.count
- end
-
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
@@ -32,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
@@ -45,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