...

/

Minitest and Routing

Minitest and Routing

Learn to write tests for routing testing Minitest.

Route testing

The primary method that Rails/Minitest uses for route testing is assert_routing. Here are the Minitest versions of the same standard routes:

rsync -avr --progress /usercode/* /usr/local/educative/gatherer --exclude course-content --exclude execute_.sh --exclude execute.sh --exclude __ed_script.sh --exclude __ed_stderr.txt --exclude __ed_stdout.txt
clear
bundle exec rake test
Adding code to projects_controller_test.rb file in test/controllers directory

The assert_routing method

Let’s look at the arguments of the assert_routing method.

First argument

The first argument to assert_routing ...