]> git.openstreetmap.org Git - rails.git/blob - test/controllers/directions_controller_test.rb
jsrouting: don't close the smallscreen header until both geocodes entered
[rails.git] / test / controllers / directions_controller_test.rb
1 require 'test_helper'
2
3 class DirectionsControllerTest < ActionController::TestCase
4
5   ##
6   # test all routes which lead to this controller
7   def test_routes
8     assert_routing(
9       { :path => "/directions", :method => :get },
10       { :controller => "directions", :action => "search" }
11     )
12   end
13
14   ###
15   # test the search action
16   def test_search
17     get :search
18     assert_response :success
19   end
20
21 end