]> git.openstreetmap.org Git - rails.git/blob - test/controllers/browse_controller_test.rb
Merge remote-tracking branch 'upstream/pull/4636'
[rails.git] / test / controllers / browse_controller_test.rb
1 require "test_helper"
2
3 class BrowseControllerTest < ActionDispatch::IntegrationTest
4   ##
5   # test all routes which lead to this controller
6   def test_routes
7     assert_routing(
8       { :path => "/query", :method => :get },
9       { :controller => "browse", :action => "query" }
10     )
11   end
12
13   def test_query
14     get query_path
15     assert_response :success
16     assert_template "browse/query"
17   end
18 end