]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/user_controller_test.rb
Fixup make_friend and remove_friend properly
[rails.git] / test / functional / user_controller_test.rb
index e853081836298bdc5393c60d2aaf080f052f4cea..fbceb3c0568b5cff127499f17eb6c0afdb84f8df 100644 (file)
@@ -139,10 +139,18 @@ class UserControllerTest < ActionController::TestCase
       { :controller => "user", :action => "account", :display_name => "username" }
     )
 
+    assert_routing(
+      { :path => "/user/username/make_friend", :method => :get },
+      { :controller => "user", :action => "make_friend", :display_name => "username" }
+    )
     assert_routing(
       { :path => "/user/username/make_friend", :method => :post },
       { :controller => "user", :action => "make_friend", :display_name => "username" }
     )
+    assert_routing(
+      { :path => "/user/username/remove_friend", :method => :get },
+      { :controller => "user", :action => "remove_friend", :display_name => "username" }
+    )
     assert_routing(
       { :path => "/user/username/remove_friend", :method => :post },
       { :controller => "user", :action => "remove_friend", :display_name => "username" }