X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b375050e6c30015f0e92236fa57cf15d392d2b02..99c54bc5b6c06f9457d45cdd42bd078b20ffb779:/test/models/node_test.rb diff --git a/test/models/node_test.rb b/test/models/node_test.rb index cf60c84ec..a68be4aa9 100644 --- a/test/models/node_test.rb +++ b/test/models/node_test.rb @@ -1,8 +1,6 @@ require "test_helper" class NodeTest < ActiveSupport::TestCase - api_fixtures - def test_node_too_far_north node = build(:node, :latitude => 90.01 * OldNode::SCALE) assert_equal false, node.valid? @@ -168,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 @@ -216,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 @@ -241,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