]> git.openstreetmap.org Git - rails.git/commitdiff
Check that the /api/0.6/capabilities.json route is recognised
authorTom Hughes <tom@compton.nu>
Sun, 13 Aug 2023 09:33:43 +0000 (10:33 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 13 Aug 2023 09:33:43 +0000 (10:33 +0100)
test/controllers/api/capabilities_controller_test.rb

index ced2359d32e9f19d9776daf9e22af2d6036b9fd4..aa8e21938b149ffe13ca0f0a7e03fb107c3786d1 100644 (file)
@@ -17,6 +17,10 @@ module Api
         { :controller => "api/capabilities", :action => "show" },
         { :path => "/api/0.6/capabilities", :method => :get }
       )
+      assert_recognizes(
+        { :controller => "api/capabilities", :action => "show", :format => "json" },
+        { :path => "/api/0.6/capabilities.json", :method => :get }
+      )
     end
 
     def test_capabilities