From: Tom Hughes Date: Sun, 13 Aug 2023 09:33:43 +0000 (+0100) Subject: Check that the /api/0.6/capabilities.json route is recognised X-Git-Tag: live~1090^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/3539328d1c7a4c7d60cf12d831664ae3d92bafe6?ds=sidebyside;hp=24d6b3c55f33f2097f86716d82197ec34b69c7c3 Check that the /api/0.6/capabilities.json route is recognised --- diff --git a/test/controllers/api/capabilities_controller_test.rb b/test/controllers/api/capabilities_controller_test.rb index ced2359d3..aa8e21938 100644 --- a/test/controllers/api/capabilities_controller_test.rb +++ b/test/controllers/api/capabilities_controller_test.rb @@ -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