openstreetmap-website/test/controllers/directions_controller_test.rb
2020-04-22 16:45:16 +02:00

19 lines
418 B
Ruby

require "test_helper"
class DirectionsControllerTest < ActionDispatch::IntegrationTest
##
# test all routes which lead to this controller
def test_routes
assert_routing(
{ :path => "/directions", :method => :get },
{ :controller => "directions", :action => "search" }
)
end
###
# test the search action
def test_search
get directions_path
assert_response :success
end
end