]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/api/capabilities_controller_test.rb
Check that the /api/0.6/capabilities.json route is recognised
[rails.git] / 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