X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d0aa199e92a110c93791bcc9eeb2c691d004e87a..2347761266d8848dcdc42f9e5d9ef380fa04b89a:/test/functional/node_controller_test.rb diff --git a/test/functional/node_controller_test.rb b/test/functional/node_controller_test.rb index a380eeb20..59b28e114 100644 --- a/test/functional/node_controller_test.rb +++ b/test/functional/node_controller_test.rb @@ -15,7 +15,9 @@ class NodeControllerTest < Test::Unit::TestCase 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 @@ -57,7 +59,7 @@ class NodeControllerTest < Test::Unit::TestCase 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