Functional Testing of Controllers

Learn to do functional testing of controllers.

We'll cover the following

Now for the moment of truth. Before we focus on writing new tests, we need to determine if we’ve broken anything. Remember our experience after we added validation logic to our model! With that in mind, let’s run our tests again:

depot> bin/rails test

Note: We have provided a live terminal at the end of this lesson. You can run the commands of this lesson in the provided terminal.

Get hands-on with 1200+ tech skills courses.