]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/node_controller_test.rb
some useful notes in code for ideas that require implementing.
[rails.git] / test / functional / node_controller_test.rb
index a380eeb208313f08672104595eef0d188ec72e06..59b28e114100f17002fcf543253d41553599d5e1 100644 (file)
@@ -15,7 +15,9 @@ class NodeControllerTest < Test::Unit::TestCase
 
   def test_create
     # cannot read password from fixture as it is stored as MD5 digest
 
   def test_create
     # cannot read password from fixture as it is stored as MD5 digest
-    basic_authorization("test@openstreetmap.org", "test");  
+    basic_authorization(users(:normal_user).email, "test");
+    # FIXME we need to create a changeset first argh
+    
     # create a node with random lat/lon
     lat = rand(100)-50 + rand
     lon = rand(100)-50 + rand
     # create a node with random lat/lon
     lat = rand(100)-50 + rand
     lon = rand(100)-50 + rand
@@ -57,7 +59,7 @@ class NodeControllerTest < Test::Unit::TestCase
     assert_response :unauthorized
 
     # now set auth
     assert_response :unauthorized
 
     # now set auth
-    basic_authorization("test@openstreetmap.org", "test");  
+    basic_authorization(users(:normal_user).email, "test");  
 
     # this should work
     delete :delete, :id => current_nodes(:visible_node).id
 
     # this should work
     delete :delete, :id => current_nodes(:visible_node).id