]> git.openstreetmap.org Git - rails.git/commitdiff
Test account destroy route
authorAnton Khorev <tony29@yandex.ru>
Sun, 16 Feb 2025 23:20:24 +0000 (02:20 +0300)
committerAnton Khorev <tony29@yandex.ru>
Mon, 17 Feb 2025 14:08:36 +0000 (17:08 +0300)
test/controllers/accounts_controller_test.rb

index d1ed14e500a11b5ff02cf0aa2d4ed7e7ad140d86..f13574213a7fdcc5927aebc63f0eb343f32a8692 100644 (file)
@@ -12,6 +12,10 @@ class AccountsControllerTest < ActionDispatch::IntegrationTest
       { :path => "/account", :method => :put },
       { :controller => "accounts", :action => "update" }
     )
       { :path => "/account", :method => :put },
       { :controller => "accounts", :action => "update" }
     )
+    assert_routing(
+      { :path => "/account", :method => :delete },
+      { :controller => "accounts", :action => "destroy" }
+    )
   end
 
   def test_account
   end
 
   def test_account