]> git.openstreetmap.org Git - rails.git/blob - test/functional/search_controller_test.rb
Make the node controller return the modified time for deleted nodes
[rails.git] / test / functional / search_controller_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2
3 class SearchControllerTest < ActionController::TestCase
4   ##
5   # test all routes which lead to this controller
6   def test_routes
7     assert_routing(
8       { :path => "/api/0.6/search", :method => :get },
9       { :controller => "search", :action => "search_all" }
10     )
11     assert_routing(
12       { :path => "/api/0.6/nodes/search", :method => :get },
13       { :controller => "search", :action => "search_nodes" }
14     )
15     assert_routing(
16       { :path => "/api/0.6/ways/search", :method => :get },
17       { :controller => "search", :action => "search_ways" }
18     )
19     assert_routing(
20       { :path => "/api/0.6/relations/search", :method => :get },
21       { :controller => "search", :action => "search_relations" }
22     )
23   end
24 end