]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/old_way_controller_test.rb
cover the other extreme in the map bounary sanitizeation. Ading some documentation...
[rails.git] / test / functional / old_way_controller_test.rb
index c6d4ce240180d351d3b7c99c7072c1770c277944..c47b45dfcac4af56db4d1cbbf31e748e43ca7c4c 100644 (file)
@@ -74,7 +74,8 @@ class OldWayControllerTest < Test::Unit::TestCase
   end
 
   ##
-  #
+  # look at all the versions of the way in the history and get each version from
+  # the versions call. check that they're the same.
   def check_history_equals_versions(way_id)
     get :history, :id => way_id
     assert_response :success, "can't get way #{way_id} from API"
@@ -94,16 +95,4 @@ class OldWayControllerTest < Test::Unit::TestCase
     end
   end
 
-  ##
-  # for some reason assert_equal a, b fails when the ways are actually
-  # equal, so this method manually checks the fields...
-  def assert_ways_are_equal(a, b)
-    assert_equal a.id, b.id, "way IDs"
-    assert_equal a.changeset_id, b.changeset_id, "changeset ID on way #{a.id}"
-    assert_equal a.visible, b.visible, "visible on way #{a.id}"
-    assert_equal a.version, b.version, "version on way #{a.id}"
-    assert_equal a.tags, b.tags, "tags on way #{a.id}"
-    assert_equal a.nds, b.nds, "node references on way #{a.id}"
-  end
-
 end