]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/way_controller_test.rb
Fix rubocop lint issues
[rails.git] / test / controllers / way_controller_test.rb
index 3ae7aa36eb2d196af9c58c817813183edcdb6a14..33d9b457945e9d024ca02f3ed6c7098b38ce40ba 100644 (file)
@@ -124,11 +124,9 @@ class WayControllerTest < ActionController::TestCase
       "<nd ref='#{nid1}'/><nd ref='#{nid2}'/>" +
       "<tag k='test' v='yes' /></way></osm>"
     put :create
-    # hope for success
+    # hope for failure
     assert_response :forbidden,
-                    "way upload did not return success status"
-    # read id of created way and search for it
-    wayid = @response.body
+                    "way upload did not return forbidden status"
 
     ## Now use a public user
     nid1 = current_nodes(:used_node_1).id