]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/way_controller_test.rb
- add old_relation_controller and stuff so that relation history works. fixes #557.
[rails.git] / test / functional / way_controller_test.rb
index 494b1be8cc8bb5f587a30863e7d9351898be8162..933dfb542edc9be778923735378a9052439b0de0 100644 (file)
@@ -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
 
   # -------------------------------------