]> git.openstreetmap.org Git - rails.git/blob - test/controllers/directions_controller_test.rb
e80d796bdb2ca390bf471806c9ddb1c8b6962744
[rails.git] / test / controllers / directions_controller_test.rb
1 require 'test_helper'
2
3 class DirectionsControllerTest < ActionController::TestCase
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 :search
17     assert_response :success
18   end
19 end