You’re not receiving notifications from this thread.
How to write Controller & Integration Tests in Rails Discussion
Hi Chris great job! What is the difference of the integration test with the controller test
If you check the previous video "How to use Devise Test Helpers" from about the 8min40s mark, he explains that they are the same thing, but since Rails 5 are referred to as Integration Tests.
As Menno mentioned, the ControllerTest is now obsolete, rails is using IntegrationTest
Rails provides TDD and you can get free by searching online Rails forum. So take it simple way to learn
If you find that updating with invalid credentials provides a 422 response, instead of the 200 response shown in the video, I think this is okay.
Check the projects_controller.rb, the 422 status is specified in the update action. I think its just an update to the jumpstart framework since the video was recorded. You should specify the error code in your test to match the controller specs as well, assert_response(422).