]> git.openstreetmap.org Git - rails.git/blob - test/controllers/directions_controller_test.rb
Add patch/put api message update
[rails.git] / test / controllers / directions_controller_test.rb
1 require "test_helper"
2
3 class DirectionsControllerTest < ActionDispatch::IntegrationTest
4   ##
5   # test all routes which lead to this controller
6   def test_routes
7     assert_routing(
8       { :path => "/directions", :method => :get },
9       { :controller => "directions", :action => "search" }
10     )
11   end
12
13   ###
14   # test the search action
15   def test_search
16     get directions_path
17     assert_response :success
18   end
19 end