X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/78b440ffc1e0448f8a6d73c8821dd58634ffb475..e03ea17a227b09df70899b035680b51b3da2c61b:/test/functional/way_controller_test.rb
diff --git a/test/functional/way_controller_test.rb b/test/functional/way_controller_test.rb
index afe9e8652..933dfb542 100644
--- a/test/functional/way_controller_test.rb
+++ b/test/functional/way_controller_test.rb
@@ -37,6 +37,18 @@ class WayControllerTest < Test::Unit::TestCase
# check chat a non-existent way is not returned
get :read, :id => 0
assert_response :not_found
+
+ # check the "ways for node" mode
+ get :ways_for_node, :id => current_nodes(:used_node_1).id
+ assert_response :success
+ # FIXME check whether this contains the stuff we want!
+ print @response.body
+
+ # check the "full" mode
+ get :full, :id => current_ways(:visible_way).id
+ assert_response :success
+ # FIXME check whether this contains the stuff we want!
+ print @response.body
end
# -------------------------------------
@@ -49,7 +61,7 @@ class WayControllerTest < Test::Unit::TestCase
basic_authorization "test@openstreetmap.org", "test"
# create a way with pre-existing nodes
- content ""
+ content ""
put :create
# hope for success
assert_response :success,
@@ -80,7 +92,7 @@ class WayControllerTest < Test::Unit::TestCase
basic_authorization "test@openstreetmap.org", "test"
# create a way with non-existing node
- content ""
+ content ""
put :create
# expect failure
assert_response :precondition_failed,