X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6d07f5661a4530b334ab752044536e8bdb201b02..9d57643812a8ee94022541c1119a69374565a6dd:/test/functional/way_controller_test.rb diff --git a/test/functional/way_controller_test.rb b/test/functional/way_controller_test.rb index 494b1be8c..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 # -------------------------------------