X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3ef6fa4aa94676e2544284ddff114ae6910992cc..6648d3a2a6202566099423472665d3072eb02ae9:/test/models/way_test.rb?ds=sidebyside
diff --git a/test/models/way_test.rb b/test/models/way_test.rb
index ed8a6cea3..6abf99c57 100644
--- a/test/models/way_test.rb
+++ b/test/models/way_test.rb
@@ -1,14 +1,6 @@
require "test_helper"
class WayTest < ActiveSupport::TestCase
- api_fixtures
-
- # Check that we have the correct number of currnet ways in the db
- # This will need to updated whenever the current_ways.yml is updated
- def test_db_count
- assert_equal 7, Way.count
- end
-
def test_bbox
node = create(:node)
visible_way = create(:way)
@@ -50,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
@@ -73,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
@@ -86,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