]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/directions_controller_test.rb
Add yaml syntax highlighting to code blocks
[rails.git] / test / controllers / directions_controller_test.rb
index e80d796bdb2ca390bf471806c9ddb1c8b6962744..31f57b9db334703231f4a0f2083da71409682467 100644 (file)
@@ -1,6 +1,6 @@
-require 'test_helper'
+require "test_helper"
 
-class DirectionsControllerTest < ActionController::TestCase
+class DirectionsControllerTest < ActionDispatch::IntegrationTest
   ##
   # test all routes which lead to this controller
   def test_routes
@@ -13,7 +13,7 @@ class DirectionsControllerTest < ActionController::TestCase
   ###
   # test the search action
   def test_search
-    get :search
+    get directions_path
     assert_response :success
   end
 end