From 3539328d1c7a4c7d60cf12d831664ae3d92bafe6 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 13 Aug 2023 10:33:43 +0100 Subject: [PATCH] Check that the /api/0.6/capabilities.json route is recognised --- test/controllers/api/capabilities_controller_test.rb | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5