]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/user_controller_test.rb
Require POST for make_friend and remove_friend
[rails.git] / test / functional / user_controller_test.rb
index 4379a1d49d18c5e5bd06fa8f239c9dd8fd06a116..e853081836298bdc5393c60d2aaf080f052f4cea 100644 (file)
@@ -140,11 +140,11 @@ class UserControllerTest < ActionController::TestCase
     )
 
     assert_routing(
-      { :path => "/user/username/make_friend", :method => :get },
+      { :path => "/user/username/make_friend", :method => :post },
       { :controller => "user", :action => "make_friend", :display_name => "username" }
     )
     assert_routing(
-      { :path => "/user/username/remove_friend", :method => :get },
+      { :path => "/user/username/remove_friend", :method => :post },
       { :controller => "user", :action => "remove_friend", :display_name => "username" }
     )