]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/api_controller_test.rb
Improve functional tests for notes#search
[rails.git] / test / functional / api_controller_test.rb
index d3e1d5485af6e3e1ece8fa9d5a9f639e090f099a..04be473875d2b21a21566ac42b92de961d5f354c 100644 (file)
@@ -29,6 +29,10 @@ class ApiControllerTest < ActionController::TestCase
       { :controller => "api", :action => "capabilities" }, 
       { :path => "/api/0.6/capabilities", :method => :get }
     )
+    assert_routing(
+      { :path => "/api/0.6/permissions", :method => :get },
+      { :controller => "api", :action => "permissions" }
+    )
     assert_routing(
       { :path => "/api/0.6/map", :method => :get },
       { :controller => "api", :action => "map" }
@@ -295,6 +299,9 @@ class ApiControllerTest < ActionController::TestCase
         assert_select "area[maximum=#{MAX_REQUEST_AREA}]", :count => 1
         assert_select "tracepoints[per_page=#{TRACEPOINTS_PER_PAGE}]", :count => 1
         assert_select "changesets[maximum_elements=#{Changeset::MAX_ELEMENTS}]", :count => 1
+        assert_select "status[database=online]", :count => 1
+        assert_select "status[api=online]", :count => 1
+        assert_select "status[gpx=online]", :count => 1
       end
     end
   end