Class: RouteTest

Inherits:
ActionDispatch::IntegrationTest
  • Object
show all
Defined in:
lib/generators/minitest/route/templates/route_test.rb

Overview

Add the following to your Rake file to test routes by default:

Minitest::Rails::Testing.default_tasks << "routes"

Instance Method Summary collapse

Instance Method Details

#test_rootObject


7
8
9
# File 'lib/generators/minitest/route/templates/route_test.rb', line 7

def test_root
  assert_routing "/", controller: "home", action: "show"
end