▼ In this curriculum, write the test code of the application created in the curriculum of the previous chapter.
・ Last time, I created a simple Twitter account, so I learned the test code. It seems that he is often left to the fledgling work as an engineer, so I worked hard.
・ Describe it example arrangement expect (X) .to eq Y -Organize instances with FactoryBot Besides, the generation method with before and Faker. Organize the status of context.
◆ Creating test code for unit and combination. ・ First, create a model and controller by itself. -After that, create an integration test code using the instance, character string, and gem learned above. -Create integration test code for users, tweets, and comments. -Finally, the support module simplifies login.
▼ Summary ・ I felt that the amount and volume were small when I tried to write it, but the work of actually creating a file from scratch and writing the test code was extremely difficult for me as a beginner. .. .. .. However, when I saw the movement that works after entering the code each time in the terminal, my own growth and interest in programming increased. I still want to go to the next curriculum as soon as possible and learn more. Next year, I will enjoy learning to succeed in changing jobs as an engineer.
Recommended Posts