Added more fixtures and tests for node versioning calls.
[rails.git] / test / unit / old_node_test.rb
index 85c2037c27cdd843379d9ccdb3ae00aad41da551..5623e9657152e837fa0103c7698757496b8cd890 100644 (file)
@@ -51,7 +51,7 @@ class OldNodeTest < Test::Unit::TestCase
     dbnode = Node.find(node.id)
     assert_equal dbnode.lat, node.latitude.to_f/SCALE
     assert_equal dbnode.lon, node.longitude.to_f/SCALE
-    assert_equal dbnode.user_id, node.user_id
+    assert_equal dbnode.changeset_id, node.changeset_id
     assert_equal dbnode.version, node.version
     assert_equal dbnode.visible, node.visible
     assert_equal dbnode.timestamp, node.timestamp
@@ -67,7 +67,7 @@ class OldNodeTest < Test::Unit::TestCase
     dbnode = Node.find(node.id)
     assert_equal dbnode.lat, node.latitude.to_f/SCALE
     assert_equal dbnode.lon, node.longitude.to_f/SCALE
-    assert_equal dbnode.user_id, node.user_id
+    assert_equal dbnode.changeset_id, node.changeset_id
     assert_equal dbnode.version, node.version
     assert_equal dbnode.visible, node.visible
     assert_equal dbnode.timestamp, node.timestamp