]> git.openstreetmap.org Git - rails.git/blobdiff - test/unit/node_test.rb
first draft of collective translation thanks to http://translated.by/you/locale-for...
[rails.git] / test / unit / node_test.rb
index 51cf82d123d1670cb0ef7f1704ec325d4831166d..acad7218ca8fc3fafc2118c2fe650de8917970d0 100644 (file)
@@ -1,7 +1,11 @@
 require File.dirname(__FILE__) + '/../test_helper'
 
-class NodeTest < Test::Unit::TestCase
+class NodeTest < ActiveSupport::TestCase
   api_fixtures
+  
+  def test_node_count
+    assert_equal 16, Node.count
+  end
 
   def test_node_too_far_north
          invalid_node_test(:node_too_far_north)
@@ -52,7 +56,7 @@ class NodeTest < Test::Unit::TestCase
     assert_equal dbnode.version, node.version
     assert_equal dbnode.visible, node.visible
     #assert_equal node.tile, QuadTile.tile_for_point(node.lat, node.lon)
-    assert_valid node
+    assert node.valid?
   end
   
   # This helper method will check to make sure that a node is outwith the world,